UserStyleFlavor


class UserStyleFlavor


Represents user specified preset of watch face.

use Watch Face Format instead

Summary

Public constructors

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

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

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

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public functions

open operator Boolean
equals(other: Any?)

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

open Int

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

open String

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public properties

Map<IntDefaultComplicationDataSourcePolicy>

This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

String

This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

UserStyleData

This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public constructors

UserStyleFlavor

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

Constructs UserStyleFlavor based on UserStyle specified.

UserStyleFlavor

Added in 1.2.0
Deprecated in 1.3.0-alpha06
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
Deprecated in 1.3.0-alpha06
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
Deprecated in 1.3.0-alpha06
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
Deprecated in 1.3.0-alpha06
val styleUserStyleData

Style info of the flavor represented by UserStyleData.