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 ChangedMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
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
-