easeCamera

fun easeCamera(update: CameraUpdate, durationMs: Int = 300, easingInterpolator: Boolean = true, callback: OnCameraDidChange? = null)

Gradually move the camera by a specified duration in milliseconds. Only properties specified within CameraUpdate will change. A callback can be used to be notified when the camera stops.

Parameters

update

The change that should be applied to the camera.

durationMs

The duration of the animation in milliseconds. This must be strictly positive, otherwise an IllegalArgumentException will be thrown.

easingInterpolator

True for easing interpolator, false for linear.

callback

An optional callback to be notified from the main thread when the animation stops. The callback will be called with one parameter of type CameraCallbackStatus indicating if the animation was complete or canceled.