MapboxCarMapSessionInstaller
class MapboxCarMapSessionInstaller(session: Session, mapboxCarMap: MapboxCarMap)
Content copied to clipboard
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())
Content copied to clipboard
Functions
install
Link copied to clipboard
fun install(initializer: MapboxCarMapInitializer = defaultInitializer): MapboxCarMap
Content copied to clipboard
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
Content copied to clipboard
onResumed
Link copied to clipboard
fun onResumed(vararg observers: MapboxCarMapObserver): MapboxCarMapSessionInstaller
Content copied to clipboard
onStarted
Link copied to clipboard
fun onStarted(vararg observers: MapboxCarMapObserver): MapboxCarMapSessionInstaller
Content copied to clipboard