moveCamera

fun moveCamera(cameraUpdate: CameraUpdate)(source)

Moves the camera instantly to a new position.

Stops any ongoing animation and commits any pending pan offsets before applying the camera update. If the camera already is at the target, nothing else happens and no camera listeners are called.

The camera moves right away, but onCameraMoveStarted and onCameraIdle are called later on the main thread, after the view has a size. Another camera change reports them first, so the events always arrive in order.

Parameters

cameraUpdate

The camera update to apply