Google is committed to advancing racial equity for Black communities. See how.

BooleanUserStyleSetting

class BooleanUserStyleSetting : UserStyleSetting
kotlin.Any
   ↳ androidx.wear.watchface.style.UserStyleSetting
   ↳ androidx.wear.watchface.style.UserStyleSetting.BooleanUserStyleSetting

A BooleanUserStyleSetting represents a setting with a true and a false setting.

Summary

Nested classes

Represents a true or false option in the BooleanUserStyleSetting.

Public constructors
<init>(id: String, displayName: CharSequence, description: CharSequence, icon: Icon?, defaultValue: Boolean, affectsLayers: Collection<Layer>)

Public methods
Boolean

Returns the default value.

BooleanUserStyleSettingWireFormat

Inherited functions
Inherited properties

Public constructors

<init>

BooleanUserStyleSetting(
    id: String,
    displayName: CharSequence,
    description: CharSequence,
    icon: Icon?,
    defaultValue: Boolean,
    affectsLayers: Collection<Layer>)

Public methods

getDefaultValue

fun getDefaultValue(): Boolean

Returns the default value.

toWireFormat

fun toWireFormat(): BooleanUserStyleSettingWireFormat