Viewport Data Source
interface ViewportDataSource
Content copied to clipboard
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
getViewportData
Link copied to clipboard
registerUpdateObserver
Link copied to clipboard
abstract fun registerUpdateObserver(viewportDataSourceUpdateObserver: ViewportDataSourceUpdateObserver)
Content copied to clipboard
Register an observer that gets called whenever the available ViewportData changes.
unregisterUpdateObserver
Link copied to clipboard
abstract fun unregisterUpdateObserver(viewportDataSourceUpdateObserver: ViewportDataSourceUpdateObserver)
Content copied to clipboard
Unregister ViewportDataSourceUpdateObserver.
Inheritors
MapboxNavigationViewportDataSource
Link copied to clipboard