Called when the camera starts moving after it has been idle or when the reason for camera
motion has changed.
Constants
public
static
final
int
REASON_API_ANIMATION
Non-gesture animation initiated in response to user actions. For example: zoom buttons, my
location button, or marker clicks.
Constant Value:
2
public
static
final
int
REASON_DEVELOPER_ANIMATION
Developer initiated animation.
Constant Value:
3
public
static
final
int
REASON_GESTURE
Camera motion initiated in response to user gestures on the map. For example: pan, tilt,
pinch to zoom, or rotate.
Constant Value:
1
Public Methods
public
abstract
void
onCameraMoveStarted(int reason)
Called when the camera starts moving after it has been idle or when the reason for camera
motion has changed. Do not update or animate the camera from within this method.
This is called on the Android UI thread.
Parameters
reason
The reason for the camera change. Possible values:
[[["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 2025-04-14 UTC."],[[["`GoogleMap.OnCameraMoveStartedListener` is a callback interface triggered when the camera on a Google Map begins to move."],["It provides the reason for the camera movement, categorized as user gesture, API animation, or developer animation."],["The `onCameraMoveStarted` method is called when the camera starts moving, providing the reason for the movement via an integer parameter."],["Developers should avoid updating or animating the camera from within the `onCameraMoveStarted` method."]]],["The `GoogleMap.OnCameraMoveStartedListener` interface provides a callback for when camera movement begins. The `onCameraMoveStarted` method, triggered on the UI thread, receives an integer `reason` indicating the cause: `REASON_GESTURE` (user gestures), `REASON_API_ANIMATION` (user-action animations), or `REASON_DEVELOPER_ANIMATION` (developer-initiated animations). This method signals the start of camera motion, whether from user interaction, default animations, or developer actions, and it is not intended for the camera to be animated or updated in this method.\n"]]