public interface IDeviceScanner
Interface for device scanning services.
Implementations of this interface are typically used by sensor drivers
to discover sensors connected via USB, bluetooth, zeroconf, etc.
Modifier and Type | Method and Description |
---|---|
boolean |
isScanning() |
void |
startScan(IDeviceScanCallback callback)
Scans for any connected device
|
void |
startScan(IDeviceScanCallback callback,
java.lang.String idRegex)
Scans for connected devices with device ID matching the given regex pattern
This will only generate events when the device ID matches the regex pattern |
void |
stopScan()
Stop the current scan
|
void startScan(IDeviceScanCallback callback)
callback
- callback to which scan results are deliveredvoid startScan(IDeviceScanCallback callback, java.lang.String idRegex)
callback
- callback to which scan results are deliveredidRegex
- Regex pattern for filtering on the device IDvoid stopScan()
boolean isScanning()