MapboxCarApp

object MapboxCarApp

The entry point for your Mapbox Android Auto app.

Functions

Link copied to clipboard
fun carAppAudioGuidanceService(): MapboxAudioGuidance

Audio guidance service available to the car and app.

Link copied to clipboard
fun carAppLocationService(): CarAppLocation

Location service available to the car and app.

Link copied to clipboard
fun setup(application: Application)

Setup android auto from your Application.onCreate

Link copied to clipboard
fun updateCarAppState(carAppState: CarAppState)

Keep your car and app in sync with CarAppState.

Properties

Link copied to clipboard
val carAppState: StateFlow<CarAppState>

Attach observers to the CarAppState to determine which view to show.