animateCamera
suspend fun animateCamera(cameraOptions: CameraOptions, animationDuration: Duration = DEFAULT_ANIMATION_DURATION)
Moves the camera according to the given cameraOptions and animates the transition.
Parameters
cameraOptions
CameraOptions with the desired camera update.
animationDuration
The animation duration. The default animation duration is 1,5 seconds.
suspend fun animateCamera(factory: CameraOptionsFactory.() -> CameraOptions, animationDuration: Duration = DEFAULT_ANIMATION_DURATION)
Moves the camera according to the CameraOptions created by factory and animates the transition.
Parameters
factory
Invoked to create the CameraOptions.
animationDuration
The animation duration. The default animation duration is 1,5 seconds.