Used for receiving notifications from the
when the device location has changed or can no longer be determined. The methods are called
has been registered with the location client using the
LocationCallback, Looper) method.
Public Constructor Summary
Public Method Summary
Inherited Method Summary
public LocationCallback ()
public void onLocationAvailability (LocationAvailability locationAvailability)
Called when there is a change in the availability of location data.
can assume that location will not be returned in
onLocationResult(LocationResult) until something changes in the device's
settings or environment. Even when
onLocationResult(LocationResult) may not always be called regularly, however
the device location is known and both the most recently delivered location and
FusedLocationProviderApi.getLastLocation(GoogleApiClient) will be reasonably
up to date given the hints specified by the active
|locationAvailability||The current status of location availability.|
public void onLocationResult (LocationResult result)
Called when device location information is available.
The most recent location returned by
LocationResult.getLastLocation() is not guaranteed to be immediately fresh,
but will be reasonably up to date given the hints specified by the active
|result||The latest location result available.|