public static class GeofenceManager.Listener extends Object implements GeofenceListener, LocationListener
GeofenceManager
. It is only public because
GeofenceListener
classes must be public.Constructor and Description |
---|
Listener()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
locationUpdated(Location location)
Deprecated.
This method is been called by the system when Location is being updated
|
void |
onEntered(String id)
Deprecated.
This callback gets called once the device enters the Geofence area
|
void |
onExit(String id)
Deprecated.
This callback gets called once the device is out of the Geofence area
|
void |
providerStateChanged(int newState)
Deprecated.
This method is been called by the system when the provider state has
being Changed
|
public void onExit(String id)
GeofenceListener
onExit
in interface GeofenceListener
public void onEntered(String id)
GeofenceListener
onEntered
in interface GeofenceListener
public void locationUpdated(Location location)
LocationListener
locationUpdated
in interface LocationListener
location
- a Location Objectpublic void providerStateChanged(int newState)
LocationListener
providerStateChanged
in interface LocationListener
newState
- a new state one of the following:
LocationManager.AVAILABLE, LocationManager.OUT_OF_SERVICE or
LocationManager.TEMPORARILY_UNAVAILABLE