MapboxCarMapSessionInstaller

class MapboxCarMapSessionInstaller(session: Session, mapboxCarMap: MapboxCarMap)

When attaching the many possible experiences onto MapboxCarMap, this installer allows you to remove all the boilerplate. Use this installer for creating experiences that will be attached as long as the head unit is using your application. To assign an experience to a screen please use the MapboxCarMapScreenInstaller.

Use this to setup the Session. Use the Session.mapboxMapInstaller extension!

Parameters

session

Android Auto Session.

mapboxCarMap

instance that can be also be found from the install function.

Constructors

MapboxCarMapSessionInstaller
Link copied to clipboard
fun MapboxCarMapSessionInstaller(session: Session, mapboxCarMap: MapboxCarMap = MapboxCarMap())

Functions

install
Link copied to clipboard
fun install(initializer: MapboxCarMapInitializer = defaultInitializer): MapboxCarMap

Subscribes to the Session lifecycle and coordinates assigns the observers to their specified lifecycle.

onCreated
Link copied to clipboard
fun onCreated(vararg observers: MapboxCarMapObserver): MapboxCarMapSessionInstaller
onResumed
Link copied to clipboard
fun onResumed(vararg observers: MapboxCarMapObserver): MapboxCarMapSessionInstaller
onStarted
Link copied to clipboard
fun onStarted(vararg observers: MapboxCarMapObserver): MapboxCarMapSessionInstaller