GoogleMap.OnCameraChangeListener

  • GoogleMap.OnCameraChangeListener is 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, and GoogleMap.OnCameraIdleListener for finer-grained control over camera events.

  • The onCameraChange method was called after the camera position changed, including the final position of an animation.

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.