ViewportDataSource

interface ViewportDataSource

Describes an object that provides desired camera positions to NavigationCamera.

Implementation should always store the latest available ViewportData and return it via getViewportData. Whenever data becomes available, registered ViewportDataSourceUpdateObserver should be notified.

Functions

Link copied to clipboard
abstract fun getViewportData(): ViewportData

Get the latest ViewportData.

Link copied to clipboard
abstract fun registerUpdateObserver(viewportDataSourceUpdateObserver: ViewportDataSourceUpdateObserver)

Register an observer that gets called whenever the available ViewportData changes. The observer also gets notified with latest data on registration.

Link copied to clipboard
abstract fun unregisterUpdateObserver(viewportDataSourceUpdateObserver: ViewportDataSourceUpdateObserver)

Inheritors

Link copied to clipboard