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