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

ListOption

class ListOption : UserStyleSetting.Option
kotlin.Any
   ↳ androidx.wear.watchface.style.UserStyleSetting.Option
   ↳ androidx.wear.watchface.style.UserStyleSetting.ListUserStyleSetting.ListOption

Represents choice within a ListUserStyleSetting, these must be enumerated up front.

Summary

Public constructors
<init>(id: String, displayName: CharSequence, icon: Icon?)

Public methods
ListOptionWireFormat

Inherited functions
Properties
CharSequence

Localized human readable name for the setting, used in the style selection UI.

Icon?

Icon for use in the style selection UI.

Inherited properties

Public constructors

<init>

ListOption(
    id: String,
    displayName: CharSequence,
    icon: Icon?)

Public methods

toWireFormat

fun toWireFormat(): ListOptionWireFormat

Properties

displayName

val displayName: CharSequence

Localized human readable name for the setting, used in the style selection UI.

icon

val icon: Icon?

Icon for use in the style selection UI.