public interface BleService
Modifier and Type | Method and Description |
---|---|
void |
startScanning(Configuration configuration,
java.util.function.Consumer<ScanDetection> callback)
Start scanning for BLE devices.
|
void |
stopScanning()
Stops the last called startScanning operation.
|
void startScanning(Configuration configuration, java.util.function.Consumer<ScanDetection> callback)
configuration
- provide setting options to filter the beacons to be scanned
// TODO: add filtering options, so if more than one beacon is found, apply them to select which one
will be pickedcallback
- provided function that will be called once a beacon is detectedvoid stopScanning()