@ProviderType
public interface BluetoothLeBeaconScanner<T extends BluetoothLeBeacon>
Modifier and Type | Method and Description |
---|---|
void |
addBeaconListener(BluetoothLeBeaconListener<T> listener)
Add a listener for detected beacons.
|
BluetoothLeAdapter |
getAdapter()
Get the bluetooth adapter this advertiser is associated to.
|
BluetoothLeBeaconDecoder<T> |
getDecoder()
Get the decoder used by this scanner.
|
boolean |
isScanning()
Indicates if a scan is running.
|
void |
removeBeaconListener(BluetoothLeBeaconListener<T> listener)
Remove the given beacon listener
|
void |
startBeaconScan(long duration)
Start a scan for beacons of given duration in seconds.
|
void |
stopBeaconScan()
Stop the scan for beacons.
|
void startBeaconScan(long duration) throws KuraBluetoothCommandException
duration
- The scan duration in secondsKuraBluetoothCommandException
void stopBeaconScan()
boolean isScanning()
void addBeaconListener(BluetoothLeBeaconListener<T> listener)
listener
- The beacon listenervoid removeBeaconListener(BluetoothLeBeaconListener<T> listener)
listener
- The beacon listenerBluetoothLeAdapter getAdapter()
BluetoothLeBeaconDecoder<T> getDecoder()