MSDKSurfaceCallback

constructor(carContext: CarContext, config: SurfaceCallbackConfig = SurfaceCallbackConfig(), androidAutoSurfaceHolder: AndroidAutoSurfaceHolder? = null, onMapReady: () -> Unit? = null, connectionState: AAConnectionState? = null, screenStateHolder: AAScreenStateHolder? = null, mapState: AAMapState? = null)

Parameters

carContext

CarContext for accessing system services

config

Configuration for all customizable behaviors

androidAutoSurfaceHolder

Optional holder for MapController/Delegate access. If null, falls back to AndroidAutoSurfaceManager dynamic lookup.

onMapReady

Callback invoked when the MapView is fully initialized and ready.

connectionState

Optional AAConnectionState for direct holder injection. If null, resolved lazily from AndroidAutoSurfaceManager.

screenStateHolder

Optional AAScreenStateHolder for direct holder injection. If null, resolved lazily from AndroidAutoSurfaceManager.

mapState

Optional AAMapState for direct holder injection. If null, resolved lazily from AndroidAutoSurfaceManager.