MapboxCarMapLoader
Default map style loader that is designed for Android Auto. This map loader assumes you want to keep map styles in sync with the CarContext.isDarkMode.
To use, register an instance to MapboxCarMap.registerObserver. It will automatically load the map for as long as it is registered. To disable you can unregister it with MapboxCarMap.unregisterObserver. Override the Session.onCarConfigurationChanged and call the onCarConfigurationChanged.
Constructors
Functions
Returns the current style contract. If an override has not been set the default is returned.
This will use CarContext.isDarkMode to determine if the dark or light style should be loaded. If this is called while the map is detached, there is no operation.
Set the map style to apply when CarContext.isDarkMode is true. Setting to null
will use a default map style.
Set the map style to apply when CarContext.isDarkMode is false. Setting to null
will use a default map style.