Se llama cuando la cámara comienza a moverse después de haber estado inactiva o cuando cambia el motivo del movimiento de la cámara.
Constantes
público
estático
final
REASON_API_ANIMATION
Se inició una animación sin gestos en respuesta a las acciones del usuario. Por ejemplo, los botones de zoom, el botón Mi ubicación o los clics en el marcador.
Valor de la constante:
2
público
estático
final
REASON_DEVELOPER_ANIMATION
Animación iniciada por el desarrollador
Valor de la constante:
3
público
estático
final
int
REASON_GESTURE
El movimiento de la cámara se inicia en respuesta a los gestos del usuario en el mapa. Por ejemplo: desplazamiento lateral, inclinación, pellizcar para hacer zoom o rotar.
Se llama cuando la cámara comienza a moverse después de haber estado inactiva o cuando cambia el motivo del movimiento de la cámara. No actualices ni animes la cámara desde este método.
Se llama a esto en el subproceso de IU de Android.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-06-12 (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"]]