UserStyleFlavor
class UserStyleFlavor
Represents user specified preset of watch face.
use Watch Face Format instead
Summary
Public constructors |
|---|
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public functions |
|
|---|---|
open operator Boolean |
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<Int, DefaultComplicationDataSourcePolicy> |
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
UserStyleFlavor(
id: String,
style: UserStyle,
complications: Map<Int, DefaultComplicationDataSourcePolicy>
)
Constructs UserStyleFlavor based on UserStyle specified.
UserStyleFlavor
UserStyleFlavor(
id: String,
style: UserStyleData,
complications: Map<Int, DefaultComplicationDataSourcePolicy>
)
| 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 |
complications: Map<Int, DefaultComplicationDataSourcePolicy> |
Specifies complication data source policy represented by |
Public functions
Public properties
complications
val complications: Map<Int, DefaultComplicationDataSourcePolicy>
Specifies complication data source policy represented by DefaultComplicationDataSourcePolicy for each ComplicationSlot.id presented in map. For absent complication slots default policies are used.
id
val id: String
An arbitrary string that uniquely identifies a flavor within the set of flavors supported by the watch face.
style
val style: UserStyleData
Style info of the flavor represented by UserStyleData.