Android 12 Developer Preview is here! Try it out, and give us your feedback!

UserStyleSchema

class UserStyleSchema
kotlin.Any
   ↳ androidx.wear.watchface.style.UserStyleSchema

Describes the list of UserStyleSettings the user can configure.

Summary

Public constructors
<init>(wireFormat: UserStyleSchemaWireFormat)

<init>(userStyleSettings: List<UserStyleSetting>)

Describes the list of UserStyleSettings the user can configure.

Public methods
String

UserStyleSchemaWireFormat

Properties
List<UserStyleSetting>

The user configurable style categories associated with this watch face.

Public constructors

<init>

UserStyleSchema(wireFormat: UserStyleSchemaWireFormat)

<init>

UserStyleSchema(userStyleSettings: List<UserStyleSetting>)

Describes the list of UserStyleSettings the user can configure.

Public methods

toString

fun toString(): String

toWireFormat

fun toWireFormat(): UserStyleSchemaWireFormat

Properties

userStyleSettings

val userStyleSettings: List<UserStyleSetting>

The user configurable style categories associated with this watch face. Empty if the watch face doesn't support user styling.