public static class ScanFilter.Please
extends java.lang.Object
ScanFilter.onEvent(ScanEvent)
.
Use static constructor methods to create an instance.public ScanFilter.Please thenStopScan()
BleManager.stopScan(ScanFilter)
.@Deprecated public ScanFilter.Please thenStopPeriodicScan()
thenStopScan()
instead.
This method will be removed in v3.1.
Shorthand for calling BleManager.stopPeriodicScan(ScanFilter)
.@Deprecated public ScanFilter.Please thenStopAllScanning()
thenStopScan()
instead.
This method will be removed in v3.1.
Shorthand for calling both BleManager.stopScan(ScanFilter)
and BleManager.stopPeriodicScan(ScanFilter)
.public static ScanFilter.Please acknowledge()
ScanFilter.onEvent(ScanEvent)
to acknowledge the discovery.
DiscoveryListener.onEvent(DiscoveryListener.DiscoveryEvent)
will be called presently with a newly created BleDevice
.public static ScanFilter.Please acknowledgeIf(boolean condition)
public static ScanFilter.Please acknowledgeIf(boolean condition, BleDeviceConfig config)
acknowledgeIf(boolean)
but lets you pass a BleDeviceConfig
as well.public static ScanFilter.Please acknowledge(BleDeviceConfig config)
acknowledge()
but allows you to pass a BleDeviceConfig
instance to the BleDevice
that's about to be created.public static ScanFilter.Please ignore()
ScanFilter.onEvent(ScanEvent)
to say no to the discovery.public static ScanFilter.Please ignoreIf(boolean condition)