Package-level declarations

Types

Link copied to clipboard

Default VehiclePositionStrategy that centers the vehicle horizontally in the unobscured visible area.

Link copied to clipboard
data class GestureConfig(val scrollEnabled: Boolean = true, val scaleEnabled: Boolean = true, val flingEnabled: Boolean = false, val exitTrackingOnGesture: Boolean = true)

Configuration for gesture handling on the Android Auto map surface.

Link copied to clipboard
interface MapViewDelegate

Delegate interface for MapView operations that require app-specific ViewModel access.

Link copied to clipboard
open class MSDKSurfaceCallback(carContext: CarContext, config: SurfaceCallbackConfig = SurfaceCallbackConfig(), androidAutoSurfaceHolder: AndroidAutoSurfaceHolder? = null, onMapReady: () -> Unit? = null, connectionState: AAConnectionState? = null, screenStateHolder: AAScreenStateHolder? = null, mapState: AAMapState? = null) : SurfaceCallback

SDK-level SurfaceCallback that handles rendering the MSDK MapView on Android Auto's surface.

Link copied to clipboard

Interface for injecting custom overlay views on top of the MSDK MapView in the Android Auto surface.

Link copied to clipboard
data class SurfaceCallbackConfig(val overlayProvider: OverlayViewProvider? = null, val vehiclePositionStrategy: VehiclePositionStrategy? = DefaultVehiclePositionStrategy(), val gestureConfig: GestureConfig = GestureConfig(), val defaultCenterOnZoomLevel: Double = 13.0, val zoomButtonStep: Double = 1.0, val maxZoomLevel: Double = 22.5, val zoomToRectInsets: ZoomToRectInsets = ZoomToRectInsets(), val mapViewDestroyDelayMs: Long = 100, val mapCreationMaxRetries: Int = 10, val mapCreationRetryDelayMs: Long = 500)

Central configuration object for MSDKSurfaceCallback.

Link copied to clipboard
data class VehiclePosition(val horizontalFraction: Double, val verticalFraction: Double)

Computed vehicle icon position on the map surface.

Link copied to clipboard

Strategy for computing the vehicle icon position on the Android Auto map surface.

Link copied to clipboard
data class ZoomToRectInsets(val left: Float = 0.1f, val right: Float = 0.1f, val top: Float = 0.05f, val bottom: Float = 0.05f)

Fractional insets applied when fitting a geographic bounding box (e.g., a route) within the visible area of the Android Auto map surface.