GoogleMap.OnCameraMoveCanceledListener
当镜头移动已停止或相机由于新原因而开始移动时的回调接口。
公共方法
public
abstract
void
onCameraMoveCanceled
()
当开发者显式调用 stopAnimation()
方法时,或者在 onCameraIdle 有机会在上一个动画之后触发之前,相机移动的原因发生了更改,则系统会调用该方法。请勿在此方法中更新镜头或为镜头添加动画效果。
此方法在 Android 界面线程上调用。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-16。
[null,null,["最后更新时间 (UTC):2025-07-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"]]