public class EddystoneDiscoverer extends AbstractBluetoothDeviceDiscoverer<IEddystoneNamespace,IEddystoneDevice>
DiscoveryContract. The discoverer adjusts its behaviour according to
the specified EddystoneScanContext and ActivityCheckConfiguration.PROFILE_RECOGNIZED_DEVICE_NOT_READY, PROFILE_RECOGNIZED_FILTERING_NOT_PASSED, PROFILE_RECOGNIZED_NO_BELONGING_SPACE_FOUND, PROFILE_UNRECOGNIZED| Constructor and Description |
|---|
EddystoneDiscoverer(EddystoneScanContext scanContext,
ActivityCheckConfiguration activityCheckConfiguration,
DiscoveryContract discoveryContract)
Instantiates a new Eddystone discoverer.
|
| Modifier and Type | Method and Description |
|---|---|
protected BluetoothDeviceEvent |
createEvent(EventType eventType,
IEddystoneNamespace eddystoneNamespace,
java.util.ArrayList<IEddystoneDevice> deviceList) |
void |
disable()
Disables discoverer.
|
protected void |
onBeforeDeviceLost(IEddystoneDevice device) |
boolean |
performDiscovery(BluetoothDevice bluetoothDevice,
int rssi,
byte[] scanResult)
Performs discovery of specific Bluetooth devices.
|
clearResources, evictInactiveDevices, getDevicesInSpace, getSpaceSet, insertDevicesIntoSpace, notifySpacePresent, onDeviceDiscoveredEvent, onDeviceLostEvent, onDevicesUpdatedEvent, onSpaceAbandonedEvent, onSpaceEnteredEvent, reset, sortIfEnabledpublic EddystoneDiscoverer(EddystoneScanContext scanContext, ActivityCheckConfiguration activityCheckConfiguration, DiscoveryContract discoveryContract)
scanContext - the scan contextactivityCheckConfiguration - the activity check configurationdiscoveryContract - the discovery contractprotected BluetoothDeviceEvent createEvent(EventType eventType, IEddystoneNamespace eddystoneNamespace, java.util.ArrayList<IEddystoneDevice> deviceList)
createEvent in class AbstractBluetoothDeviceDiscoverer<IEddystoneNamespace,IEddystoneDevice>protected void onBeforeDeviceLost(IEddystoneDevice device)
onBeforeDeviceLost in class AbstractBluetoothDeviceDiscoverer<IEddystoneNamespace,IEddystoneDevice>public boolean performDiscovery(BluetoothDevice bluetoothDevice,
int rssi,
byte[] scanResult)
BluetoothDeviceDiscovererbluetoothDevice - the bluetooth devicerssi - the rssiscanResult - scan resultpublic void disable()
BluetoothDeviceDiscoverer