FocusOn

@Serializable
data class FocusOn(    val changeZoom: Boolean? = null,     val minZoom: Double? = null,     val rotation: Double? = null,     val tilt: Double? = null,     val padding: MPIOptions.CameraPadding? = null,     val duration: Double? = null,     val easing: MPIOptions.EASING_MODE? = null)

Options that change the behaviour of MPICamera.focusOn

Constructors

Link copied to clipboard
fun FocusOn(    changeZoom: Boolean? = null,     minZoom: Double? = null,     rotation: Double? = null,     tilt: Double? = null,     padding: MPIOptions.CameraPadding? = null,     duration: Double? = null,     easing: MPIOptions.EASING_MODE? = null)

Properties

Link copied to clipboard
val changeZoom: Boolean? = null

Whether the current zoom level should be changed to better place the targets in view.

Link copied to clipboard
val duration: Double? = null

Animation duration in milliseconds.

Link copied to clipboard
val easing: MPIOptions.EASING_MODE? = null

Mode for easing in and out of the focus on animation.

Link copied to clipboard
val minZoom: Double? = null

The minimum zoom level the camera is allowed to change to when focusing on targets. Useful to prevent the camera from zooming in too far if the target is a single MPINavigatable.MPINode or MPIMap.MPICoordinate.

Link copied to clipboard
val padding: MPIOptions.CameraPadding? = null
Link copied to clipboard
val rotation: Double? = null

Specify the rotation the camera makes during the focusing animation.

Link copied to clipboard
val tilt: Double? = null

Specify the tilt the camera makes during the focusing animation.