Wywoływana, gdy kamera zacznie się poruszać po bezczynności lub gdy zmieni się przyczyna ruchu kamery.
Stałe
public static final final
int
REASON_API_ANIMATION
Animacja niewymagająca gestu została zainicjowana w odpowiedzi na działania użytkownika. Mogą to być na przykład przyciski powiększenia, przycisk lokalizacji lub kliknięcia znacznika.
Wartość stała:
2
public static final final int
REASON_DEVELOPER_ANIMATION
Animacja zainicjowana przez dewelopera.
Wartość stała:
3
public static final final
int
REASON_GESTURE
Ruch kamery został zainicjowany w odpowiedzi na gesty użytkownika na mapie. Na przykład przesuń, przechyl, ściągnij, aby powiększyć lub obrócić.
Wartość stała:
1
Metody publiczne
public abstract
void
onCameraMoveStarted(intReason)
Wywoływana, gdy kamera zacznie się poruszać po bezczynności lub gdy zmieni się przyczyna ruchu kamery. Nie aktualizuj ani nie animuj kamery, używając tej metody.
Jest to tzw. wątek interfejsu Androida.
Parametry
powód
Przyczyna zmiany aparatu. Możliwe wartości:
REASON_GESTURE: korzystanie z gestów użytkownika na mapie.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-08 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"]]