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 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 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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[null,null,["Last updated 2025-06-16 UTC."],[[["`GoogleMap.OnCameraMoveCanceledListener` is an interface used to receive callbacks when the camera movement is interrupted or a new movement begins."],["The `onCameraMoveCanceled()` method is triggered when `stopAnimation()` is called or when the cause of camera movement changes before the camera settles."]]],["The `GoogleMap.OnCameraMoveCanceledListener` interface provides a callback for camera motion cessation or change. The `onCameraMoveCanceled()` method is invoked when `stopAnimation()` is called or if the motion's reason changes before `onCameraIdle` fires. Developers should refrain from updating or animating the camera within `onCameraMoveCanceled()`. This method operates on the Android UI thread, indicating the event's occurrence.\n"]]