GoogleMap.OnCameraMoveListener
Callback interface for when the camera changes position.
Public Method Summary
abstract void |
onCameraMove()
Called repeatedly as the camera continues to move after an onCameraMoveStarted
call.
|
Public Methods
public abstract void onCameraMove ()
Called repeatedly as the camera continues to move after an onCameraMoveStarted call.
This may be called as often as once every frame and should not perform expensive
operations.
This is called on the Android UI thread.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["`GoogleMap.OnCameraMoveListener` is an interface to monitor camera movement on a Google Map."],["The `onCameraMove()` method is called frequently during camera movement, allowing developers to respond to these changes."],["Implementations of `onCameraMove()` should avoid long-running tasks as it's called on the UI thread and can impact performance."]]],["The `GoogleMap.OnCameraMoveListener` interface provides a callback for camera position changes. Its core function, `onCameraMove()`, is invoked repeatedly while the camera is in motion, subsequent to an `onCameraMoveStarted` call. This method is executed on the Android UI thread and is intended for lightweight operations due to its potential for high-frequency execution, occurring as often as once per frame. It serves to update with the map's position when a move action occurs.\n"]]