RouteCalloutUiStateProvider

Provider of UI state for route callouts.

Normally, route callouts are drawn under the hood in NavSDK when this feature is enabled in MapboxRouteLineApiOptions. However, there might be cases when app wants to only get the callout data from NavSDK and attach the DVA itself. An example of such a case is using Mapbox Maps SDK Compose extensions: attaching a DVA for Compose MapboxMap is done via compose-specific API, which is not currently supported by NavSDK. In this case you may listen to RouteCalloutUiState updates and use its information by attach a DVA. Use this class (specifically, uiStateData flow) to subscribe.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Flow of RouteCalloutUiStateData. Subscribe to this flow to retrieve UI data for callouts in case you want to attach the DVA yourself.