Package com.mapbox.maps.extension.androidauto

Types

DefaultMapboxCarMapGestureHandler
Link copied to clipboard
open class DefaultMapboxCarMapGestureHandler : MapboxCarMapGestureHandler

This class contains the default map gestures. It Handles the gestures received from SurfaceCallback and applies them to the MapboxMap camera. If you would like to customize the map gestures, use MapboxCarMap.setGestureHandler.

MapboxCarMap
Link copied to clipboard
class MapboxCarMap

This is the main entry point for controlling the Mapbox car map surface.

MapboxCarMapGestureHandler
Link copied to clipboard
interface MapboxCarMapGestureHandler
This interface captures gesture events from Android Auto's SurfaceCallback.
MapboxCarMapInitializer
Link copied to clipboard
fun interface MapboxCarMapInitializer

Lazy initialization for the MapInitOptions. The CarContext is not created until the Session has been created. Use this initializer to specify custom initial map options.

MapboxCarMapObserver
Link copied to clipboard
interface MapboxCarMapObserver
Many downstream services will not work until the surface has been created and the map has loaded.
MapboxCarMapScreenInstaller
Link copied to clipboard
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.

MapboxCarMapSessionInstaller
Link copied to clipboard
class MapboxCarMapSessionInstaller(session: Session, 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 the head unit is using your application. To assign an experience to a screen please use the MapboxCarMapScreenInstaller.

MapboxCarMapSurface
Link copied to clipboard
class MapboxCarMapSurface

This contains the Android Auto head unit map information.

Functions

mapboxMapInstaller
Link copied to clipboard
fun Session.mapboxMapInstaller(): MapboxCarMapSessionInstaller

Shorthand extension for installing the map onto a Session.

fun Screen.mapboxMapInstaller(mapboxCarMap: MapboxCarMap): MapboxCarMapScreenInstaller

Shorthand extension for installing an experience onto a Screen.