FrontendMetadata

data class FrontendMetadata(    val id: FrontendMetadataId,     val creationPolicy: FrontendCreationPolicy = FrontendCreationPolicy.CREATE_FRONTEND_AFTER_STARTUP,     val launchMenuItem: MenuItem? = null,     val frontendExtensions: Collection<FrontendExtension> = emptyList(),     val availablePanelTypes: PanelTypeSet = PLATFORM_PANEL_TYPES,     val frontendBuilderFactory: () -> FrontendBuilder)

Encapsulates metadata describing a Frontend.

Parameters

id

Unique identifier per IviInstanceId of the frontend metadata.

creationPolicy

Describes when this Frontend would like to be created by the framework.

launchMenuItem

A MenuItem which will be used to launch a Frontend. Can be null if this Frontend should not appear in the menu.

frontendExtensions

The FrontendExtensions available to this Frontend.

availablePanelTypes

The Panel types available to the Frontend. By default, all of the Panel types offered by the TomTom Digital Cockpit platform are included. When introducing a new Panel type, Frontends using it must have the type specified here for the Frontend to be able to use it, e.g., by passing PLATFORM_PANEL_TYPES + CustomPanel::class. This information is also used by the system UI to determine whether or not it can support the Frontends it's asked to present Panels for.

frontendBuilderFactory

A factory to create a FrontendBuilder that can be used to create the Frontend.

Constructors

Link copied to clipboard
fun FrontendMetadata(    id: FrontendMetadataId,     creationPolicy: FrontendCreationPolicy = FrontendCreationPolicy.CREATE_FRONTEND_AFTER_STARTUP,     launchMenuItem: MenuItem? = null,     frontendExtensions: Collection<FrontendExtension> = emptyList(),     availablePanelTypes: PanelTypeSet = PLATFORM_PANEL_TYPES,     frontendBuilderFactory: () -> FrontendBuilder)

Properties

Link copied to clipboard
val availablePanelTypes: PanelTypeSet
Link copied to clipboard
val creationPolicy: FrontendCreationPolicy
Link copied to clipboard
val frontendBuilderFactory: () -> FrontendBuilder
Link copied to clipboard
val frontendExtensions: Collection<FrontendExtension>
Link copied to clipboard
val id: FrontendMetadataId
Link copied to clipboard
val launchMenuItem: MenuItem? = null