Viewport State
interface ViewportState
Content copied to clipboard
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
observeDataSource
Link copied to clipboard
abstract fun observeDataSource(viewportStateDataObserver: ViewportStateDataObserver): Cancelable
Content copied to clipboard
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()
Content copied to clipboard
Start updating the camera for the current ViewportState.
stopUpdatingCamera
Link copied to clipboard
abstract fun stopUpdatingCamera()
Content copied to clipboard
Stop updating the camera for the current ViewportState.