Builder

class Builder(val applicationContext: Context, val accessToken: String) : DashConfigBuilder<DashConfig, DashConfig.Builder> , DashInit

Creates a new instance of DashConfig.

Parameters

applicationContext

context of the application.

accessToken

access token from your Mapbox account. You can create a new one in your Mapbox Account.

Constructors

Link copied to clipboard
constructor(applicationContext: Context, accessToken: String)

Properties

Link copied to clipboard
open override val accessToken: String
Link copied to clipboard
Link copied to clipboard
open override var applicationId: String

The application ID of the app that the plugin is being used in.

Link copied to clipboard
Link copied to clipboard

A config for custom location provider implementation. See CustomLocationFactoryProviderConfig for details. Note that in the config you must specify a location provider type: LocationProviderType.REAL, LocationProviderType.MOCKED or LocationProviderType.MIXED. Note that locations emitted by a custom location provider must set a valid value for isMock extra flag: real locations must have it set to false or not set at all, while mocked/simulated locations must have it set to true. Every location object specifies this flag, so if your location provider's type is LocationProviderType.MIXED, emitted locations will just have different flag values, depending on whether they are real or mocked. To set this flag, use:

Link copied to clipboard

Map of custom configuration key -> value pairs.

Link copied to clipboard
Link copied to clipboard
open override var device: DashDeviceType

DashDeviceType that defines the type of device on which the app is running. The type of device providing data to the navigator.

Link copied to clipboard
open override var engineType: String?

Configures vehicle's engine type.

Link copied to clipboard
open override var environment: String

The environment in which the plugin is being used.

Link copied to clipboard
Link copied to clipboard
open override var locale: Locale

Locale that should be used for guidance instruction and other localization features.

Link copied to clipboard
Link copied to clipboard
open override var logLevel: Int

One of LogsExtra levels to define the logs that should be produced by Dash SDK.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Dash UI elements appearance configuration.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var unitOfMeasurement: String

Configures default unit of measurement.

Link copied to clipboard
open override var versionName: String

The version name of the app that the plugin is being used in.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun build(): DashConfig

Creates a new instance of DashConfig.

Link copied to clipboard

Configures camera behavior.

Link copied to clipboard

Configures debug settings.

Link copied to clipboard

Configures UI routing.

Link copied to clipboard

Configures the ETA panel.

Link copied to clipboard

Configures the location simulation.

Link copied to clipboard

Configures voice assistant.

Link copied to clipboard

Configures the Mapbox Maps styles used with Dash. You can edit or create new ones via Mapbox Studio.

Link copied to clipboard

Configures the route options.

Link copied to clipboard

Configures search.

Link copied to clipboard

Configures speed limits options.

Link copied to clipboard

Configures appearance of Dash's UI elements.

Link copied to clipboard
fun DashInit.ui(f: DashUiInit.() -> Unit)

Configures UI properties.

Link copied to clipboard

Configures UI Settings

Link copied to clipboard

Configures the voices used for Dash Navigation and MapGPT.