Package es.situm.sdk.location
Interface LocationListener
public interface LocationListener
Used for received locations and statuses from the
LocationManager. You have to register
the listener using the LocationManager.requestLocationUpdates(LocationRequest, LocationListener)-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when an error is received during initialization.voidonLocationChanged(Location location) Called when the location has changedvoidonStatusChanged(LocationStatus status) Called when a new status is received
-
Method Details
-
onLocationChanged
Called when the location has changed- Parameters:
location- the updated location
-
onStatusChanged
Called when a new status is received- Parameters:
status- One of theLocationStatus
-
onError
Called when an error is received during initialization. The positioning will not be started if an error is received.- Parameters:
error-
-