public static class GeofenceManager.Listener
- Object
- GeofenceManager.Listener
ImplementsGeofenceListener, LocationListener
Deprecated. For internal use only.
The Listener class that is registered to receive Geofence events. This is
used internally by
GeofenceManager. It is only public because
GeofenceListener classes must be public.Constructors
public Listener() |
Methods
public void onExit(String id) | This callback gets called once the device is out of the Geofence area |
public void onEntered(String id) | This callback gets called once the device enters the Geofence area |
public void locationUpdated(Location location) | This method is been called by the system when Location is being updated |
public void providerStateChanged(int newState) | This method is been called by the system when the provider state has being Changed |
Inherited methods
Constructor details
Listener
public Listener()Method details
onExit
public void onExit(String id)This callback gets called once the device is out of the Geofence area
onEntered
public void onEntered(String id)This callback gets called once the device enters the Geofence area
locationUpdated
public void locationUpdated(Location location)This method is been called by the system when Location is being updated
Parameters
locationLocation- a Location Object
providerStateChanged
public void providerStateChanged(int newState)This method is been called by the system when the provider state has
being Changed
Parameters
newStateint- a new state one of the following: LocationManager.AVAILABLE, LocationManager.OUT_OF_SERVICE or LocationManager.TEMPORARILY_UNAVAILABLE