animateCamera
abstract fun animateCamera(options: CameraOptions, animationDuration: AnimationDuration? = AnimationDuration.createDefault()): 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
AnimationDuration describing the timing of the transition process.
abstract fun animateCamera(options: CameraOptions, animationDuration: AnimationDuration? = null, actionCallback: OnCancellableActionCallback): Cancellable
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).
Return
Cancellable that cancels camera animation
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.