animate

fun animate(    config: MPIOptions.CameraTransformNode,     options: MPIOptions.CameraAnimation? = null,     callback: (error: MPIError?) -> Unit? = null)

Animate the Camera's view to smoothly transition to a new state over time, using a node.

Return

Unit

Parameters

config

The zoom, rotation, tilt and position (node) of the new state of the Camera's view.

options

fun animate(    config: MPIOptions.CameraTransformCoordinate,     options: MPIOptions.CameraAnimation? = null,     callback: (error: MPIError?) -> Unit? = null)

Animate the Camera's view to smoothly transition to a new state over time, using a coordinate.

Return

Unit

Parameters

config

The zoom, rotation, tilt and position (coordinate) of the new state of the Camera's view.

options