public final class BeaconManager extends Manager
| Modifier and Type | Class and Description |
|---|---|
class |
BeaconManager.BeaconDiscoverEvent
This event is generated when a beacon is discovered
|
class |
BeaconManager.BeaconDwellEvent
This event is generated periodically as the mobile device remains within a beacon.
|
class |
BeaconManager.BeaconEnterEvent
This event is generated when a beacon is entered.
|
class |
BeaconManager.BeaconEvent
BeaconEvent is the base class for all events generated by the BeaconManager.
|
class |
BeaconManager.BeaconExitEvent
This event is generated when a beacon is exited.
|
class |
BeaconManager.BeaconNearestEvent
This event is generated when the nearest beacon changes.
|
class |
BeaconManager.BeaconResolveEvent
This event is generated when a beacon is resolved
|
| Modifier and Type | Field and Description |
|---|---|
static int |
FLAG_ALL_DEVICES |
static int |
FLAG_REGISTERED_DEVICE |
static int |
FLAG_UNREGISTERED_DEVICE
Called to return the current list of recently sighted, active beacon devices
|
| Constructor and Description |
|---|
BeaconManager() |
| Modifier and Type | Method and Description |
|---|---|
Beacon |
findBeacon(java.lang.String ident,
java.lang.String urn) |
void |
findBeacon(java.lang.String identifier,
java.lang.String urn,
long timeout,
java.util.concurrent.Executor queue,
Completion completion) |
java.util.List<Beacon> |
getActiveBeacons()
Called to return the current list of recently sighted, active beacons
|
java.util.List<Beacon> |
getActiveDevices()
Called to return the current list of recently sighted, active beacon devices
|
java.util.List<Beacon> |
getActiveDevices(long age,
int rssi,
int flags) |
java.util.List<Beacon> |
getAllBeacons()
Called to return the current list of Beacons
|
static BeaconManager |
getInstance()
Called to return the last BeaconManager created.
|
void |
init(android.content.Context context,
EventBus events,
java.util.concurrent.ScheduledExecutorService executor)
Called when the manager is created to provide its execution environment.
|
void |
onEvent(BeaconAdvertisement advertisement) |
void |
start()
This is called by the system when started.
|
void |
stop()
This is called by the system when stopped.
|
public static final int FLAG_UNREGISTERED_DEVICE
public static final int FLAG_REGISTERED_DEVICE
public static final int FLAG_ALL_DEVICES
public void init(android.content.Context context,
EventBus events,
java.util.concurrent.ScheduledExecutorService executor)
Managercontext - The application context to useevents - The EventBus that the manager is a member ofexecutor - The Executor to use and on which events are dispatchedpublic static BeaconManager getInstance()
public java.util.List<Beacon> getAllBeacons()
public java.util.List<Beacon> getActiveBeacons()
public java.util.List<Beacon> getActiveDevices()
public java.util.List<Beacon> getActiveDevices(long age, int rssi, int flags)
public void start()
public void stop()
public Beacon findBeacon(java.lang.String ident, java.lang.String urn)
public void findBeacon(java.lang.String identifier,
java.lang.String urn,
long timeout,
java.util.concurrent.Executor queue,
Completion completion)
public void onEvent(BeaconAdvertisement advertisement)