Package es.situm.sdk.location
Interface LocationListener
-
public interface LocationListener
Used 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 void
onError(Error error)
Called when an error is received during initialization.void
onLocationChanged(Location location)
Called when the location has changedvoid
onStatusChanged(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
-
-
-