public class RegionManager extends Manager
| Modifier and Type | Class and Description |
|---|---|
class |
RegionManager.RegionsChangedEvent
A RegionsChangedEvent is generated whenever the RegionManager determines the set
of entered or exited regions to have changed based on a location change.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Region> |
getEnteredRegions() |
static RegionManager |
getInstance()
Returns the last RegionManager created.
|
Region |
getMonitoredArea() |
java.util.List<Region> |
getMonitoredRegions() |
void |
init(android.content.Context context,
EventBus bus,
java.util.concurrent.ScheduledExecutorService executor)
Called when the manager is created to provide its execution environment.
|
void |
onLocationChange(Device.LocationChangedEvent event) |
void |
onPermissionsChanged(Device.PermissionsChangedEvent event) |
void |
start()
Starts the manager.
|
void |
stop()
Stops the manager.
|
public static RegionManager getInstance()
public void init(android.content.Context context,
EventBus bus,
java.util.concurrent.ScheduledExecutorService executor)
Managercontext - The application context to usebus - The EventBus that the manager is a member ofexecutor - The Executor to use and on which events are dispatchedpublic void start()
Managerpublic void stop()
Managerpublic Region getMonitoredArea()
public java.util.List<Region> getMonitoredRegions()
public java.util.List<Region> getEnteredRegions()
public void onPermissionsChanged(Device.PermissionsChangedEvent event)
public void onLocationChange(Device.LocationChangedEvent event)