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)
BluetoothDeviceDiscoverer
performDiscovery
in interface BluetoothDeviceDiscoverer
bluetoothDevice
- the bluetooth devicerssi
- the rssiscanResult
- scan resultpublic void onResolved(ISecureProfile secureProfile)
onResolved
in interface ShuffledSecureProfileResolver.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