ViewportProvider

fun fun interface ViewportProvider

Used to provide map viewport to MapboxSearchSDK instance, if you have map in your application. Provided viewport used for better and more accurate analytics data.

Functions

getViewport
Link copied to clipboard
abstract fun getViewport(): BoundingBox?
This method will be called by com.mapbox.search.analytics.AnalyticsService to access the map's viewport visible to a user.