GoogleMap.OnCameraMoveCanceledListener

  • GoogleMap.OnCameraMoveCanceledListener is an interface used to receive callbacks when the camera movement is stopped or interrupted.

  • The onCameraMoveCanceled() method is called when GoogleMap.stopAnimation() is explicitly called or when the camera starts moving for a new reason before the previous animation finishes.

  • Developers should avoid updating or animating the camera within the onCameraMoveCanceled() method as it's called on the Android UI thread.

public static interface GoogleMap.OnCameraMoveCanceledListener

Callback interface for when the camera's motion has been stopped or when the camera starts moving for a new reason.

Public Method Summary

abstract void
onCameraMoveCanceled()
Called when the developer explicitly calls the GoogleMap.stopAnimation() method or if the reason for camera motion has changed before the onCameraIdle had a chance to fire after the previous animation.

Public Methods

public abstract void onCameraMoveCanceled ()

Called when the developer explicitly calls the GoogleMap.stopAnimation() method or if the reason for camera motion has changed before the onCameraIdle had a chance to fire after the previous animation. Do not update or animate the camera from within this method.

This is called on the Android UI thread.