public class L_Util
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
L_Util.AdvertisingCallback |
static interface |
L_Util.ScanCallback |
static class |
L_Util.ScanResult |
Modifier and Type | Method and Description |
---|---|
static java.util.List<android.bluetooth.le.ScanFilter> |
convertNativeFilterList(java.util.List<NativeScanFilter> filters) |
static BleAdvertisingSettings |
fromNativeSettings(android.bluetooth.le.AdvertiseSettings settings) |
static java.util.List<BleDevice> |
getBleDeviceListFromScanIntent(android.content.Intent intentFromScan,
IBleManager mgr) |
static android.bluetooth.le.BluetoothLeAdvertiser |
getBluetoothLeAdvertiser(android.bluetooth.BluetoothAdapter adapter) |
static android.bluetooth.le.AdvertiseCallback |
getNativeAdvertisingCallback() |
static android.bluetooth.le.ScanCallback |
getNativeScanCallback() |
static boolean |
isAdvertisingSupportedByChipset(android.bluetooth.BluetoothAdapter adapter) |
static java.util.List<android.bluetooth.le.ScanFilter> |
newEmptyFilterList() |
static boolean |
requestConnectionPriority(android.bluetooth.BluetoothGatt gatt,
int mode) |
static boolean |
requestMtu(android.bluetooth.BluetoothGatt gatt,
int mtu) |
static boolean |
startAdvertising(android.bluetooth.BluetoothAdapter adapter,
android.bluetooth.le.AdvertiseSettings settings,
android.bluetooth.le.AdvertiseData adData,
L_Util.AdvertisingCallback callback) |
static void |
startNativeScan(android.bluetooth.BluetoothAdapter adapter,
int scanMode,
Interval scanReportDelay,
java.util.List<NativeScanFilter> filterList,
L_Util.ScanCallback listener) |
static void |
stopAdvertising(android.bluetooth.BluetoothAdapter adapter) |
static void |
stopNativeScan(android.bluetooth.BluetoothAdapter adapter) |
static L_Util.ScanResult |
toLScanResult(P_DeviceHolder device,
int rssi,
byte[] scanRecord) |
public static android.bluetooth.le.ScanCallback getNativeScanCallback()
public static android.bluetooth.le.AdvertiseCallback getNativeAdvertisingCallback()
public static BleAdvertisingSettings fromNativeSettings(android.bluetooth.le.AdvertiseSettings settings)
public static boolean requestMtu(android.bluetooth.BluetoothGatt gatt, int mtu)
public static boolean isAdvertisingSupportedByChipset(android.bluetooth.BluetoothAdapter adapter)
public static android.bluetooth.le.BluetoothLeAdvertiser getBluetoothLeAdvertiser(android.bluetooth.BluetoothAdapter adapter)
public static void stopNativeScan(android.bluetooth.BluetoothAdapter adapter)
public static boolean requestConnectionPriority(android.bluetooth.BluetoothGatt gatt, int mode)
public static void startNativeScan(android.bluetooth.BluetoothAdapter adapter, int scanMode, Interval scanReportDelay, java.util.List<NativeScanFilter> filterList, L_Util.ScanCallback listener)
public static boolean startAdvertising(android.bluetooth.BluetoothAdapter adapter, android.bluetooth.le.AdvertiseSettings settings, android.bluetooth.le.AdvertiseData adData, L_Util.AdvertisingCallback callback)
public static void stopAdvertising(android.bluetooth.BluetoothAdapter adapter)
public static java.util.List<android.bluetooth.le.ScanFilter> newEmptyFilterList()
public static L_Util.ScanResult toLScanResult(P_DeviceHolder device, int rssi, byte[] scanRecord)
public static java.util.List<android.bluetooth.le.ScanFilter> convertNativeFilterList(java.util.List<NativeScanFilter> filters)
public static java.util.List<BleDevice> getBleDeviceListFromScanIntent(android.content.Intent intentFromScan, IBleManager mgr)