MapboxCarApp

object MapboxCarApp

The entry point for your Mapbox Android Auto app.

Functions

carAppAudioGuidanceService
Link copied to clipboard
fun carAppAudioGuidanceService(): MapboxAudioGuidance
Audio guidance service available to the car and app.
carAppLocationService
Link copied to clipboard
fun carAppLocationService(): CarAppLocation
Location service available to the car and app.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
setup
Link copied to clipboard
fun setup(application: Application, audioGuidance: MapboxAudioGuidance = MapboxAudioGuidanceImpl( MapboxAudioGuidanceServicesImpl(), carAppDataStore, carAppConfig ), carAppLocation: CarAppLocation = CarAppLocationImpl())
Setup android auto from your Application.onCreate
toString
Link copied to clipboard
open fun toString(): String
updateCarAppState
Link copied to clipboard
fun updateCarAppState(carAppState: CarAppState)
Keep your car and app in sync with CarAppState.

Properties

carAppConfig
Link copied to clipboard
val carAppConfig: CarAppConfigOwner
Attach observers to monitor the configuration of the app and car.
carAppDataStore
Link copied to clipboard
val carAppDataStore: CarAppDataStoreOwner
Stores preferences that can be remembered across app launches.
carAppState
Link copied to clipboard
val carAppState: StateFlow<CarAppState>
Attach observers to the CarAppState to determine which view to show.