AI-generated Key Takeaways
-
The GoogleMap.OnMyLocationChangeListener interface is deprecated and should be replaced by com.google.android.gms.location.FusedLocationProviderApi.
-
The FusedLocationProviderApi offers better location accuracy and power management.
-
The interface is a callback for changes in the user's location as shown by the "My Location" blue dot.
-
The
onMyLocationChange(Location location)method is called when the location of the My Location dot changes.
This interface is deprecated.
Use com.google.android.gms.location.FusedLocationProviderApi instead.
FusedLocationProviderApi provides improved location finding and power usage and is used by
the "My Location" blue dot. See the Select
Current Place tutorial, which uses the FusedLocationProviderApi, or the Location Developer
Guide.
Callback interface for when the My Location dot/chevron (which signifies the user's location) changes location.
Public Method Summary
| abstract void |
onMyLocationChange(Location
location)
Called when the location of the My Location dot has changed (be it
latitude/longitude, bearing or accuracy).
|
Public Methods
public abstract void onMyLocationChange (Location location)
Called when the location of the My Location dot has changed (be it latitude/longitude, bearing or accuracy).
Parameters
| location | The current location of the My Location dot. |
|---|