FollowPuckViewportState

interface FollowPuckViewportState : ViewportState

The ViewportState that follows that follows the location component's puck position.

Note: LocationComponentPlugin should be enabled to use this viewport state.

Users are responsible to create the viewport states and keep a reference to these states for future operations.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
observeDataSource
Link copied to clipboard
abstract fun observeDataSource(viewportStateDataObserver: ViewportStateDataObserver): Cancelable
Observe the new camera options produced by the ViewportState, it can be used to get the latest state CameraOptions for ViewportTransition.
startUpdatingCamera
Link copied to clipboard
abstract fun startUpdatingCamera()
Start updating the camera for the current ViewportState.
stopUpdatingCamera
Link copied to clipboard
abstract fun stopUpdatingCamera()
Stop updating the camera for the current ViewportState.
toString
Link copied to clipboard
open fun toString(): String

Properties

options
Link copied to clipboard
abstract var options: FollowPuckViewportStateOptions
Describes the configuration options of the state.