UserStyleFlavor


Note: As of July 10, 2024, watch faces must use the Watch Face Format in order to be installed on new watches that launch with Wear OS 5 pre-installed. Learn more about the user-facing changes in this Help Center article.

Additionally, starting in early 2025 (specific date to be announced during Q4 2024), all new watch faces published on Google Play must use the Watch Face Format.

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.