Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

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)

The users style choices represented as a map of UserStyleSetting to UserStyleSetting.Option.

Public methods
Map<String, String>

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

toMap

fun toMap(): Map<String, String>

Returns the style as a Map<String, String>.

toWireFormat

fun toWireFormat(): UserStyleWireFormat

Properties

selectedOptions

val selectedOptions: Map<UserStyleSetting, UserStyleSetting.Option>