Space
- Space type parameter which the discovered devices belong toDevice
- Bluetooth device type parameterpublic abstract class AbstractDeviceDiscoverer<Space,Device extends RemoteBluetoothDevice,Filter extends com.android.internal.util.Predicate<Device>> extends java.lang.Object implements BluetoothDeviceDiscoverer, ShuffledDevicesResolver.ResolveCallback
Modifier and Type | Method and Description |
---|---|
void |
disable()
Disables and clears discoverer.
|
void |
evictInactiveDevices(long currentTimeMillis)
Evicts inactive devices.
|
void |
onResolved(RemoteBluetoothDevice device) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
performDiscovery
public void onResolved(RemoteBluetoothDevice device)
onResolved
in interface ShuffledDevicesResolver.ResolveCallback
public void evictInactiveDevices(long currentTimeMillis)
BluetoothDeviceDiscoverer
ActivityCheckConfiguration.getInactivityTimeout()
evictInactiveDevices
in interface BluetoothDeviceDiscoverer
currentTimeMillis
- current system time millispublic void disable()
BluetoothDeviceDiscoverer
disable
in interface BluetoothDeviceDiscoverer