MPICamera Manager
A camera controls manager.
This class encapsulates the methods that manipulate the camera.
Constructors
Link copied to clipboard
Creates a MPICameraManager.
Functions
Link copied to clipboard
fun animate( config: MPIOptions.CameraTransformCoordinate, options: MPIOptions.CameraAnimation? = null, callback: (error: MPIError?) -> Unit? = null)
Content copied to clipboard
Animate the Camera's view to smoothly transition to a new state over time, using a coordinate.
fun animate( config: MPIOptions.CameraTransformNode, options: MPIOptions.CameraAnimation? = null, callback: (error: MPIError?) -> Unit? = null)
Content copied to clipboard
Animate the Camera's view to smoothly transition to a new state over time, using a node.
Link copied to clipboard
fun focusOn( targets: MPIOptions.CameraTargets, options: MPIOptions.FocusOn? = null, callback: (error: MPIError?) -> Unit? = null)
Content copied to clipboard
Focus the Camera view on a collection of targets and animate to that state.
Link copied to clipboard
fun set(positionOptions: MPIOptions.CameraTransformCoordinate, callback: (error: MPIError?) -> Unit? = null)
Content copied to clipboard
Set the Camera's view to a new state using a coordinate.
fun set(positionOptions: MPIOptions.CameraTransformNode, callback: (error: MPIError?) -> Unit? = null)
Content copied to clipboard
Set the Camera's view to a new state using a node.
Link copied to clipboard
Sets the maximum tilt of MPIMapView, in radians
Link copied to clipboard
Sets the maximum zoom level of MPIMapView
Link copied to clipboard
Sets the minimum zoom level of MPIMapView
Link copied to clipboard
Sets the current camera rotation of MPIMapView
Link copied to clipboard
fun translate( direction: MPIOptions.CAMERA_DIRECTION, distance: Double, options: MPIOptions.CameraAnimation? = null, callback: (error: MPIError?) -> Unit? = null)
Content copied to clipboard
Moves the Camera view in a relative direction by a given distance in meters.