Chamado quando a câmera começa a se mover depois de estar inativa ou quando o motivo do movimento
da câmera mudou.
Constantes
public
estático
final
int
REASON_API_ANIMATION
Animação sem gesto iniciada em resposta a ações do usuário. Por exemplo: botões de zoom, botão "Meu local" ou cliques no marcador.
Valor da constante:
2
public
estático
final
int
REASON_DEVELOPER_ANIMATION
Animação iniciada pelo desenvolvedor.
Valor da constante:
3
public
estático
final
int
REASON_GESTURE
Movimento da câmera iniciado em resposta a gestos do usuário no mapa. Por exemplo: movimentar, inclinar,
fazer gesto de pinça para aplicar zoom ou girar.
Valor da constante:
1
Métodos públicos
public
summary
void
onCameraMoveStarted(int reason)
Chamado quando a câmera começa a se mover depois de estar inativa ou quando o motivo do movimento
da câmera mudou. Não atualize nem anime a câmera com esse método.
Isso é chamado na linha de execução de interface do Android.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-03-21 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"]]