GoogleMap.OnCameraChangeListener

  • GoogleMap.OnCameraChangeListener is deprecated and replaced by newer, more specific listeners.

  • It provided a callback for camera position changes but its interaction with the new listeners is undefined.

  • The onCameraChange method was called after a camera position change, potentially skipping intermediate positions during animations.

  • Developers should migrate to GoogleMap.OnCameraMoveStartedListener, GoogleMap.OnCameraMoveListener, and GoogleMap.OnCameraIdleListener for better control over camera events.

public static interface GoogleMap.OnCameraChangeListener

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
onCameraChange(CameraPosition position)
Called after the camera position has changed.

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.