A callback for receiving notifications from the FusedLocationProviderClient.
| void |
onLocationAvailability(LocationAvailability
availability)
Called when there is a change in the availability of location data.
|
| void |
Called when there is a change in the availability of location data.
When
LocationAvailability.isLocationAvailable() returns false it
generally indicates that further invocations of
onLocationResult(LocationResult) are unlikely until something changes with
the device's settings or environment. When
LocationAvailability.isLocationAvailable() returns true it
generally indicates that further invocations of
onLocationResult(LocationResult) are likely, and fresh locations can be
expected.
| availability | The latest location availability. |
|---|
Called when a new LocationResult
is available. The locations within the location result will generally be as fresh as
possible given the parameters of the associated LocationRequest
and the state of the device, but this does not imply that they will always represent
the current location. Clients may wish to reference the time associated with each
location.
| result | The latest location result. |
|---|