public interface BulkUpdater
BeaconManager.ConfigurableDevicesListener
using method onDevicesFound(List)
;
Each beacon status is being reported via BulkUpdater.BulkUpdaterCallback
so you can easily display it in the UI.Modifier and Type | Interface and Description |
---|---|
static interface |
BulkUpdater.BulkUpdaterCallback
Callback for listening on bulk update events.
|
static class |
BulkUpdater.Status
Current status of scanned devices.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Because bulk updater uses underlying service for handling connection to devices,
it is necessary to call this on your activity's onDestroy method.
|
boolean |
isDeviceUpdating(DeviceId device)
Checks if given device is currently being updated by bulk updater.
|
void |
onDevicesFound(java.util.List<ConfigurableDevice> devices)
Feeds bulk updater with current scanned data.
|
void |
start(BulkUpdater.BulkUpdaterCallback callback)
Starts bulk updating process with callback to notify about progress.
|
void |
stop()
Stops bulk updating process.
|
void start(BulkUpdater.BulkUpdaterCallback callback)
void stop()
onDevicesFound(List)
calls to do nothing.
You can restart updater using again start(BulkUpdaterCallback)
method (callback will be overridden).boolean isDeviceUpdating(DeviceId device)
BulkUpdater.Status.UPDATING
void onDevicesFound(java.util.List<ConfigurableDevice> devices)
BeaconManager.ConfigurableDevicesListener
which is notified by BeaconManager
.
You can configure whole scanning parameters there.void destroy()