UserStyle
class UserStyle
kotlin.Any | |
↳ | androidx.wear.watchface.style.UserStyle |
The users style choices represented as a map of UserStyleSetting to UserStyleSetting.Option.
Summary
Public constructors | |
---|---|
<init>(userStyle: Map<String, String>, styleSchema: UserStyleSchema) Constructs a UserStyle from a Map<String, String> and the UserStyleSchema. |
|
<init>(userStyle: UserStyleWireFormat, styleSchema: UserStyleSchema) |
|
<init>(selectedOptions: Map<UserStyleSetting, UserStyleSetting.Option>) The users style choices represented as a map of UserStyleSetting to UserStyleSetting.Option. |
Public methods | |
---|---|
Map<String, String> |
toMap() Returns the style as a Map<String, String>. |
UserStyleWireFormat |
Properties | |
---|---|
Map<UserStyleSetting, UserStyleSetting.Option> |
Public constructors
<init>
UserStyle(
userStyle: Map<String, String>,
styleSchema: UserStyleSchema)
Constructs a UserStyle from a Map<String, String> and the UserStyleSchema. Unrecognized style settings will be ignored. Unlisted style settings will be initialized with that settings default option.
<init>
UserStyle(
userStyle: UserStyleWireFormat,
styleSchema: UserStyleSchema)
<init>
UserStyle(selectedOptions: Map<UserStyleSetting, UserStyleSetting.Option>)
The users style choices represented as a map of UserStyleSetting to UserStyleSetting.Option.
Public methods
toWireFormat
fun toWireFormat(): UserStyleWireFormat
Properties
selectedOptions
val selectedOptions: Map<UserStyleSetting, UserStyleSetting.Option>