AI-generated Key Takeaways
-
GoogleMap.OnMyLocationChangeListeneris deprecated and developers should useFusedLocationProviderApiinstead for better location services and power efficiency. -
FusedLocationProviderApiis utilized by the "My Location" blue dot and offers enhanced location finding capabilities. -
GoogleMap.OnMyLocationChangeListenerprovided a callback for changes in the My Location dot's position (latitude/longitude, bearing, accuracy). -
Developers can refer to the Select Current Place tutorial and Location Developer Guide for guidance on implementing
FusedLocationProviderApi.
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. |
|---|