public class SecureProfileDiscoverer extends java.lang.Object implements BluetoothDeviceDiscoverer
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 |
onParsed(ISecureProfile profile) |
void |
performDiscovery(android.bluetooth.BluetoothDevice device,
int rssi,
byte[] scanResult)
Performs discovery of specific Bluetooth devices.
|
public SecureProfileDiscoverer(ScanContext scanContext, DiscoveryContract discoveryContract, FutureShufflesCache shufflesCache)
public void performDiscovery(android.bluetooth.BluetoothDevice device, int rssi, byte[] scanResult)
BluetoothDeviceDiscoverer
performDiscovery
in interface BluetoothDeviceDiscoverer
device
- the bluetooth devicerssi
- the rssiscanResult
- scan resultpublic void onParsed(ISecureProfile profile)
public void evictInactiveDevices(long currentTimeMillis)
BluetoothDeviceDiscoverer
ActivityCheckConfiguration.getInactivityTimeout()
evictInactiveDevices
in interface BluetoothDeviceDiscoverer
currentTimeMillis
- current system time millispublic void disable()
BluetoothDeviceDiscoverer
disable
in interface BluetoothDeviceDiscoverer