Class GeofenceManager.Listener
java.lang.Object
com.codename1.location.GeofenceManager.Listener
- All Implemented Interfaces:
GeofenceListener, LocationListener
- Enclosing class:
GeofenceManager
public static class GeofenceManager.Listener
extends Object
implements GeofenceListener, LocationListener
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.
Deprecated
For internal use only.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlocationUpdated(Location location) This method is been called by the system when Location is being updatedvoidThis callback gets called once the device enters the Geofence areavoidThis callback gets called once the device is out of the Geofence areavoidproviderStateChanged(int newState) This method is been called by the system when the provider state has being Changed
-
Constructor Details
-
Listener
public Listener()
-
-
Method Details
-
onExit
Description copied from interface:GeofenceListenerThis callback gets called once the device is out of the Geofence area- Specified by:
onExitin interfaceGeofenceListener
-
onEntered
Description copied from interface:GeofenceListenerThis callback gets called once the device enters the Geofence area- Specified by:
onEnteredin interfaceGeofenceListener
-
locationUpdated
Description copied from interface:LocationListenerThis method is been called by the system when Location is being updated
Parameters
location: a Location Object
- Specified by:
locationUpdatedin interfaceLocationListener
-
providerStateChanged
public void providerStateChanged(int newState) Description copied from interface:LocationListenerThis method is been called by the system when the provider state has being Changed
Parameters
newState: @param newState a new state one of the following: LocationManager.AVAILABLE, LocationManager.OUT_OF_SERVICE or LocationManager.TEMPORARILY_UNAVAILABLE
- Specified by:
providerStateChangedin interfaceLocationListener
-