AI-generated Key Takeaways
-
GoogleMap.OnCameraChangeListeneris deprecated and replaced by newer, more specific listeners. -
It provided a callback for camera position changes but is no longer recommended for use.
-
Developers should migrate to
GoogleMap.OnCameraMoveStartedListener,GoogleMap.OnCameraMoveListener, andGoogleMap.OnCameraIdleListenerfor finer-grained control over camera events. -
The
onCameraChangemethod was called after the camera position changed, including the final position of an animation.
This interface is deprecated.
Replaced by GoogleMap.OnCameraMoveStartedListener, GoogleMap.OnCameraMoveListener and
GoogleMap.OnCameraIdleListener. The order in which the deprecated onCameraChange
method will be called in relation to the methods in the new camera change listeners is
undefined.
Callback interface for when the camera changes position.
Public Method Summary
| abstract void |
Public Methods
public abstract void onCameraChange (CameraPosition position)
Called after the camera position has changed. During an animation, this listener may not be notified of intermediate camera positions. It is always called for the final position in the animation.
This is called on the Android UI thread.
Parameters
| position | The CameraPosition at the end of the last camera change.
|
|---|