public class SecureProfileDiscoverer extends java.lang.Object implements BluetoothDeviceDiscoverer, ShuffledSecureProfileResolver.ResolveCallback
| Constructor and Description |
|---|
SecureProfileDiscoverer(ScanContext scanContext,
DiscoveryContract discoveryContract,
FutureShufflesCache shufflesCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable()
Disables and clears discoverer.
|
void |
evictInactiveDevices(long currentTimeMillis)
Evicts inactive devices.
|
void |
onResolved(ISecureProfile secureProfile) |
void |
performDiscovery(android.bluetooth.BluetoothDevice bluetoothDevice,
int rssi,
byte[] scanResult)
Performs discovery of specific Bluetooth devices.
|
public SecureProfileDiscoverer(ScanContext scanContext, DiscoveryContract discoveryContract, FutureShufflesCache shufflesCache)
public void performDiscovery(android.bluetooth.BluetoothDevice bluetoothDevice,
int rssi,
byte[] scanResult)
BluetoothDeviceDiscovererperformDiscovery in interface BluetoothDeviceDiscovererbluetoothDevice - the bluetooth devicerssi - the rssiscanResult - scan resultpublic void onResolved(ISecureProfile secureProfile)
onResolved in interface ShuffledSecureProfileResolver.ResolveCallbackpublic void evictInactiveDevices(long currentTimeMillis)
BluetoothDeviceDiscovererActivityCheckConfiguration.getInactivityTimeout()evictInactiveDevices in interface BluetoothDeviceDiscoverercurrentTimeMillis - current system time millispublic void disable()
BluetoothDeviceDiscovererdisable in interface BluetoothDeviceDiscoverer