setup

fun setup(carContext: CarContext, mapInitOptions: MapInitOptions): MapboxCarMap

Calls AppManager.setSurfaceCallback to give Mapbox access to render the map onto Android Auto head units. You should only call this once per CarContext in a Session.

Parameters

carContext

Android Auto CarContext

mapInitOptions

parameter to initialize the head unit map