Package com.tomtom.ivi.platform.theming.api.common.attributes

Types

Link copied to clipboard
data class IviThemeCategory(val id: String, val label: StringResolver) : Parcelable

The IviThemeCategory describes which aspect of a theme a IviThemeComponent applies to. For example, a theme component may have a IviThemeCategory indicating that the component themes font attributes.

Link copied to clipboard
data class IviThemeComponent(    val id: String,     val themeCategory: IviThemeCategory,     @StyleRes val resId: Int,     val label: StringResolver) : Parcelable

Contains all the information related to theming a IviThemeCategory.

Link copied to clipboard
enum TtiviThemeCategoryPreset : Enum<TtiviThemeCategoryPreset>

An overview of IviThemeCategorys provided by the platform. In order to use the platform, each IviThemeCategory needs to be registered at least once by the theming service.

Properties

Link copied to clipboard
val themeComponentsPresetIds: Map<String, String>

Contains the overview of the default IviThemeComponents configuration. This overview creates a bridge between the discoverable theme components service. Here we create the IviThemeComponent with the corresponding identifier. And the theming service where we collect all the IviThemeComponent from the various discoverable services. In this case we need to create an initial theme that consists of the IviThemeComponents. An IviThemeComponent is considered as the default component if its IviThemeComponent.id matches the value of the corresponding entry in themeComponentsPresetIds.