GoogleMap.OnCameraMoveCanceledListener
Stay organized with collections
Save and categorize content based on your preferences.
Callback interface for when the camera's motion has been stopped or when the camera starts
moving for a new reason.
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.
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 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 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 `GoogleMap.stopAnimation()` is called or when the camera's movement reason changes before the previous animation finishes."],["Developers should avoid updating or animating the camera within the `onCameraMoveCanceled()` method."],["`onCameraMoveCanceled()` is executed on the main Android UI thread."]]],["The `GoogleMap.OnCameraMoveCanceledListener` interface provides a callback for when camera motion is stopped or a new motion begins. The core functionality is the `onCameraMoveCanceled()` method, which is triggered either by explicitly calling `GoogleMap.stopAnimation()` or when the camera's motion reason changes before the `onCameraIdle` event fires. This method, called on the UI thread, should not be used to update or animate the camera.\n"]]