MapboxCarMapScreenInstaller

class MapboxCarMapScreenInstaller(screen: Screen, 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 a screen is in use. To assign an experience to the entire app lifecycle please use the MapboxCarMapSessionInstaller.

Use this to setup each Screen. Use the Screen.mapboxMapInstaller extension!

Parameters

screen

Android Auto Screen.

mapboxCarMap

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

Constructors

MapboxCarMapScreenInstaller
Link copied to clipboard
fun MapboxCarMapScreenInstaller(screen: Screen, mapboxCarMap: MapboxCarMap)

Functions

gestureHandler
Link copied to clipboard
fun gestureHandler(handler: MapboxCarMapGestureHandler?): MapboxCarMapScreenInstaller
install
Link copied to clipboard
fun install(): MapboxCarMap

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

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