WithStylingFlavorType

An IviThemeComponent parameterized by an IviThemeCategoryStylingFlavor type.

Use this type when additional type-safety and compile-time checks are desired.

Use createComponent with the stylingFlavor argument or createComponents with the stylingFlavors argument, to constructor this class.

Multiple Android styles can be applied when this IviThemeComponent is selected for its IviThemeCategory. The styles are configured by IviThemeRegistrySource.Components plugins.

Parameters

id

The unique identifier of this IviThemeComponent. The following naming convention is applicable: <company>.<product>.themecomponent.<category>.<id>. For example: com.tomtom.ivi.themecomponent.color.dark

stylingFlavor

One of the enum class values of enum type SF.

themeCategory

The IviThemeCategory this component belongs to.

SF

The enum class type that defines a set of IviThemeCategory styling flavors. This type provides type-safety and allows for checking at compile time if all styling flavors are exhausted. See IviThemeCategoryStylingFlavor for more information and an example.

Properties

Link copied to clipboard
open override val id: String
Link copied to clipboard
open override val label: StringResolver

The label of the theme component.

Link copied to clipboard
Link copied to clipboard
open override val themeCategory: IviThemeCategory

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)