UserStyleFlavor


class UserStyleFlavor


Represents user specified preset of watch face.

Summary

Public constructors

UserStyleFlavor(
    id: String,
    style: UserStyle,
    complications: Map<IntDefaultComplicationDataSourcePolicy>
)

Constructs UserStyleFlavor based on UserStyle specified.

UserStyleFlavor(
    id: String,
    style: UserStyleData,
    complications: Map<IntDefaultComplicationDataSourcePolicy>
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Map<IntDefaultComplicationDataSourcePolicy>

Specifies complication data source policy represented by DefaultComplicationDataSourcePolicy for each ComplicationSlot.id presented in map.

String

An arbitrary string that uniquely identifies a flavor within the set of flavors supported by the watch face.

UserStyleData

Style info of the flavor represented by UserStyleData.

Public constructors

UserStyleFlavor

Added in 1.2.0
UserStyleFlavor(
    id: String,
    style: UserStyle,
    complications: Map<IntDefaultComplicationDataSourcePolicy>
)

Constructs UserStyleFlavor based on UserStyle specified.

UserStyleFlavor

Added in 1.2.0
UserStyleFlavor(
    id: String,
    style: UserStyleData,
    complications: Map<IntDefaultComplicationDataSourcePolicy>
)
Parameters
id: String

An arbitrary string that uniquely identifies a flavor within the set of flavors supported by the watch face.

style: UserStyleData

Style info of the flavor represented by UserStyleData.

complications: Map<IntDefaultComplicationDataSourcePolicy>

Specifies complication data source policy represented by DefaultComplicationDataSourcePolicy for each ComplicationSlot.id presented in map. For absent complication slots default policies are used.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

complications

Added in 1.2.0
val complicationsMap<IntDefaultComplicationDataSourcePolicy>

Specifies complication data source policy represented by DefaultComplicationDataSourcePolicy for each ComplicationSlot.id presented in map. For absent complication slots default policies are used.

id

Added in 1.2.0
val idString

An arbitrary string that uniquely identifies a flavor within the set of flavors supported by the watch face.

style

Added in 1.2.0
val styleUserStyleData

Style info of the flavor represented by UserStyleData.