animateCamera
abstract fun animateCamera(options: CameraOptions, animationDuration: AnimationDuration? = AnimationDuration.createDefault())
Content copied to clipboard
Moves the camera according to the given CameraOptions and animates the transition.
Parameters
options
CameraOptions with the desired camera update.
animationDuration
AnimationDuration describing the timing of the transition process.
abstract fun animateCamera( options: CameraOptions, animationDuration: AnimationDuration? = null, actionCallback: OnCancellableActionCallback)
Content copied to clipboard
Moves the camera according to the given CameraOptions and animates the transition.
Triggers the OnCancellableActionCallback if the animation action has been cancelled e.g., due to the user interaction (a gesture).
Parameters
options
CameraOptions with the desired camera update.
animationDuration
AnimationDuration describing the timing of the transition process.
actionCallback
OnCancellableActionCallback called when the animation has been cancelled.