public interface ScanFilter
BleManagerConfig.defaultScanFilter
or one of the various BleManager.startScan()
overloads, i.e. BleManager.startScan(ScanFilter)
,
BleManager.startScan(Interval, ScanFilter)
, etc.Modifier and Type | Interface and Description |
---|---|
static class |
ScanFilter.ApplyMode
An enumeration of the various ways that the (up to) two
ScanFilter held in the scan
filter manager will be applied when scanning |
static class |
ScanFilter.Please
Small struct passed back from
onEvent(ScanEvent) . |
static class |
ScanFilter.ScanEvent
Instances of this class are passed to
onEvent(ScanEvent) to aid in making a decision. |
Modifier and Type | Method and Description |
---|---|
ScanFilter.Please |
onEvent(ScanFilter.ScanEvent e)
Return
ScanFilter.Please.acknowledge() to acknowledge the discovery, in which case DiscoveryListener.onEvent(DiscoveryListener.DiscoveryEvent)
will be called shortly. |
ScanFilter.Please onEvent(ScanFilter.ScanEvent e)
ScanFilter.Please.acknowledge()
to acknowledge the discovery, in which case DiscoveryListener.onEvent(DiscoveryListener.DiscoveryEvent)
will be called shortly. Otherwise return ScanFilter.Please.ignore()
to ignore the discovered device.ScanFilter.Please.acknowledge()
, ScanFilter.Please.ignore()
, or ScanFilter.Please.acknowledge(BleDeviceConfig)
(or other static constructor methods that may be added in the future).