AI-generated Key Takeaways
-
GoogleMap.OnCameraFollowLocationCallbackprovides updates when the map's camera enters or exits the "follow location" mode. -
onCameraStartedFollowingLocation()is called when the camera begins following the user's location, typically triggered byGoogleMap.followMyLocation(). -
onCameraStoppedFollowingLocation()is called when the camera stops following the user's location, which can happen due to user interaction or API calls that move the camera.
Callback interface to get updates related to camera entering or exiting follow mode.
Public Method Summary
| abstract void |
onCameraStartedFollowingLocation()
Called when the camera starts following current location, typically will get called in
response to
GoogleMap.followMyLocation(int). |
| abstract void |
onCameraStoppedFollowingLocation()
Called when the camera stops following current location.
|
Public Methods
public abstract void onCameraStartedFollowingLocation ()
Called when the camera starts following current location, typically will get called in
response to GoogleMap.followMyLocation(int).
public abstract void onCameraStoppedFollowingLocation ()
Called when the camera stops following current location. A camera already following location
will exit the follow mode if the camera is moved via user gesture or an api call GoogleMap.moveCamera(CameraUpdate), GoogleMap.animateCamera(CameraUpdate) etc.