public interface LocationListener
LocationManager
. You have to register
the listener using the LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
Modifier and Type | Method and Description |
---|---|
void |
onError(Error error)
Called when an error is received during initialization.
|
void |
onLocationChanged(Location location)
Called when the location has changed
|
void |
onStatusChanged(LocationStatus status)
Called when a new status is received
|
void onLocationChanged(Location location)
location
- the updated locationvoid onStatusChanged(LocationStatus status)
status
- One of the LocationStatus
void onError(Error error)
error
-