-
public class RxBleAdapterWrapper
-
-
Constructor Summary
Constructors Constructor Description RxBleAdapterWrapper(BluetoothAdapter bluetoothAdapter)
-
Method Summary
Modifier and Type Method Description BluetoothDevicegetRemoteDevice(String macAddress)booleanhasBluetoothAdapter()booleanisBluetoothEnabled()booleanstartLegacyLeScan(BluetoothAdapter.LeScanCallback leScanCallback)voidstopLegacyLeScan(BluetoothAdapter.LeScanCallback leScanCallback)voidstartLeScan(List<ScanFilter> scanFilters, ScanSettings scanSettings, ScanCallback scanCallback)intstartLeScan(List<ScanFilter> scanFilters, ScanSettings scanSettings, PendingIntent callbackIntent)voidstopLeScan(PendingIntent callbackIntent)voidstopLeScan(ScanCallback scanCallback)Set<BluetoothDevice>getBondedDevices()-
-
Constructor Detail
-
RxBleAdapterWrapper
RxBleAdapterWrapper(BluetoothAdapter bluetoothAdapter)
-
-
Method Detail
-
getRemoteDevice
BluetoothDevice getRemoteDevice(String macAddress)
-
hasBluetoothAdapter
boolean hasBluetoothAdapter()
-
isBluetoothEnabled
boolean isBluetoothEnabled()
-
startLegacyLeScan
boolean startLegacyLeScan(BluetoothAdapter.LeScanCallback leScanCallback)
-
stopLegacyLeScan
void stopLegacyLeScan(BluetoothAdapter.LeScanCallback leScanCallback)
-
startLeScan
void startLeScan(List<ScanFilter> scanFilters, ScanSettings scanSettings, ScanCallback scanCallback)
-
startLeScan
int startLeScan(List<ScanFilter> scanFilters, ScanSettings scanSettings, PendingIntent callbackIntent)
-
stopLeScan
void stopLeScan(PendingIntent callbackIntent)
-
stopLeScan
void stopLeScan(ScanCallback scanCallback)
-
getBondedDevices
Set<BluetoothDevice> getBondedDevices()
-
-
-
-