Package es.situm.sdk.location
Interface LocationListener
-
public interface LocationListenerUsed for received locations and statuses from theLocationManager. You have to register the listener using theLocationManager.requestLocationUpdates(LocationRequest, LocationListener)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonError(Error error)Called 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 Detail
-
onLocationChanged
void onLocationChanged(@NonNull Location location)Called when the location has changed- Parameters:
location- the updated location
-
onStatusChanged
void onStatusChanged(@NonNull LocationStatus status)Called when a new status is received- Parameters:
status- One of theLocationStatus
-
onError
void onError(@NonNull Error error)Called when an error is received during initialization. The positioning will not be started if an error is received.- Parameters:
error-
-
-