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

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getViewportData
Link copied to clipboard
abstract fun getViewportData(): ViewportData
Get the latest ViewportData.
hashCode
Link copied to clipboard
open fun hashCode(): Int
registerUpdateObserver
Link copied to clipboard
abstract fun registerUpdateObserver(viewportDataSourceUpdateObserver: ViewportDataSourceUpdateObserver)
Register an observer that gets called whenever the available ViewportData changes.
toString
Link copied to clipboard
open fun toString(): String
unregisterUpdateObserver
Link copied to clipboard
abstract fun unregisterUpdateObserver(viewportDataSourceUpdateObserver: ViewportDataSourceUpdateObserver)

Inheritors

MapboxNavigationViewportDataSource
Link copied to clipboard