animateCamera
abstract fun animateCamera(options: CameraOptions, animationDuration: Duration? = DEFAULT_ANIMATION_DURATION): Cancellable
Moves the camera according to the given CameraOptions and animates the transition.
Return
Cancellable that cancels camera animation
Parameters
options
CameraOptions with the desired camera update.
animationDuration
Duration of the transition process.
abstract fun animateCamera(options: CameraOptions, actionCallback: AnimateCameraCallback, animationDuration: Duration? = DEFAULT_ANIMATION_DURATION): Cancellable
Moves the camera according to the given CameraOptions and animates the transition.
Triggers the AnimateCameraCallback if the animation action has been cancelled e.g., due to the user interaction (a gesture).
Return
Cancellable that cancels camera animation
Parameters
options
CameraOptions with the desired camera update.
actionCallback
AnimateCameraCallback called when the animation has been cancelled.
animationDuration
Duration of the transition process.