ViewportState

interface ViewportState

Definition of ViewportPlugin states.

ViewportState is used to observe the data source associated with the state and query the camera to keep updating according to current viewport data.

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

Inheritors

FollowPuckViewportState
Link copied to clipboard
OverviewViewportState
Link copied to clipboard