@LevelUpApi(contract=INTERNAL) public interface BluetoothLeScannerContainer
BluetoothLeScanner
.Modifier and Type | Method and Description |
---|---|
void |
startScan(List<ScanFilter> filters,
ScanSettings settings,
ScanCallback callback)
Start Bluetooth LE scan.
|
void |
stopScan(ScanCallback callback)
Stops an ongoing Bluetooth LE scan.
|
void startScan(List<ScanFilter> filters, ScanSettings settings, ScanCallback callback)
callback
.
Requires Manifest.permission.BLUETOOTH_ADMIN
permission.
filters
- ScanFilter
s for finding exact BLE devices.settings
- Settings for the scan.callback
- Callback used to deliver scan results.IllegalArgumentException
- If settings
or callback
is null.void stopScan(ScanCallback callback)
Requires Manifest.permission.BLUETOOTH_ADMIN
permission.
callback
- Callback used to deliver scan results.