GoogleMap.OnCameraMoveCanceledListener
針對攝影機動作停止或相機因新原因開始移動時的回呼介面。
公用方法
公用抽象
void
onCameraMoveCanceled
()
當開發人員明確呼叫 stopAnimation()
方法,或者相機動作原因在 onCameraIdle 可能在上一個動畫結束後觸發時呼叫,就會呼叫此方法。請勿從此方法更新或加入動畫效果。
系統會在 Android UI 執行緒上呼叫此方法。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-06-16 (世界標準時間)。
[null,null,["上次更新時間:2025-06-16 (世界標準時間)。"],[[["`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 `stopAnimation()` is called or when the cause of camera movement changes before the camera settles."]]],["The `GoogleMap.OnCameraMoveCanceledListener` interface provides a callback for camera motion cessation or change. The `onCameraMoveCanceled()` method is invoked when `stopAnimation()` is called or if the motion's reason changes before `onCameraIdle` fires. Developers should refrain from updating or animating the camera within `onCameraMoveCanceled()`. This method operates on the Android UI thread, indicating the event's occurrence.\n"]]