MapboxScreenProvider

open class MapboxScreenProvider(val mainCarContext: MainCarContext)

Open class which allows you to override any screen with your own customized screen.

Please create an issue in github, requesting the customization for the screen you're looking to modify. https://github.com/mapbox/mapbox-navigation-android/issues/new

Constructors

Link copied to clipboard
fun MapboxScreenProvider(mainCarContext: MainCarContext)

Functions

Link copied to clipboard
open fun activeGuidanceScreen(): Screen
Link copied to clipboard
open fun arrivalScreen(): Screen

The screen shown the MapboxCarApp.carAppState is in ArrivalState. This screen moves the app to FreeDriveState when it is completed.

Link copied to clipboard
open fun freeDriveScreen(): Screen

The screen shown the MapboxCarApp.carAppState is in FreeDriveState

Link copied to clipboard
open fun needsLocationPermission(): Screen

The screen shown when location permissions have not been accepted.

Link copied to clipboard
open fun routePreviewScreen(state: RoutePreviewState): Screen

The screen shown the MapboxCarApp.carAppState is in RoutePreviewState

Properties

Link copied to clipboard
val mainCarContext: MainCarContext