public interface LocationListener
Known subtypesGeofenceManager.Listener
This is a Listener to the Locations events see
LocationManager.setLocationListener
Methods
public abstract void locationUpdated(Location location) | This method is been called by the system when Location is being updated |
public abstract void providerStateChanged(int newState) | This method is been called by the system when the provider state has being Changed |
Method details
locationUpdated
public abstract void locationUpdated(Location location)This method is been called by the system when Location is being updated
Parameters
locationLocation- a Location Object
providerStateChanged
public abstract 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