public interface LocationListener
FusedLocationProviderApi.requestLocationUpdates(LostApiClient, LocationRequest,
LocationListener) or FusedLocationProviderApi.requestLocationUpdates(LostApiClient,
LocationRequest, LocationListener, android.os.Looper) methods.| Modifier and Type | Method and Description |
|---|---|
void |
onLocationChanged(android.location.Location location)
Called when the location has changed.
|
void |
onProviderDisabled(java.lang.String provider)
Deprecated.
|
void |
onProviderEnabled(java.lang.String provider)
Deprecated.
|
void onLocationChanged(android.location.Location location)
location - the newest location.@Deprecated void onProviderDisabled(java.lang.String provider)
FusedLocationProviderApi.requestLocationUpdates(LostApiClient, LocationRequest,
LocationListener). Ie. LocationRequest.PRIORITY_HIGH_ACCURACY will invoke this method
for gps and network changes but LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY will
only invoke it for network changes. This method will be removed in the next major release, it
is recommended that you use LocationAvailability instead.provider - the disabled provider.@Deprecated void onProviderEnabled(java.lang.String provider)
FusedLocationProviderApi.requestLocationUpdates(LostApiClient, LocationRequest,
LocationListener). Ie. LocationRequest.PRIORITY_HIGH_ACCURACY will invoke this method
for gps and network changes but LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY will
only invoke it for network changes. This method will be removed in the next major release, it
is recommended that you use LocationAvailability instead.provider - the enabled provider.