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

DoubleRangeUserStyleSetting

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

A DoubleRangeUserStyleSetting represents a setting with a Double value in the range [minimumValue .. maximumValue].

Summary

Nested classes

Represents an option as a Double in the range minimumValue..maximumValue.

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

Public methods
Double

Returns the default value.

Double

Returns the maximum value.

Double

Returns the minimum value.

UserStyleSetting.Option

We support all values in the range min...max not just min &amp; max.

DoubleRangeUserStyleSettingWireFormat

Inherited functions
Inherited properties

Public constructors

<init>

DoubleRangeUserStyleSetting(
    id: String,
    displayName: CharSequence,
    description: CharSequence,
    icon: Icon?,
    minimumValue: Double,
    maximumValue: Double,
    defaultValue: Double,
    affectsLayers: Collection<Layer>)

Public methods

getDefaultValue

fun getDefaultValue(): Double

Returns the default value.

getMaximumValue

fun getMaximumValue(): Double

Returns the maximum value.

getMinimumValue

fun getMinimumValue(): Double

Returns the minimum value.

getOptionForId

fun getOptionForId(optionId: String): UserStyleSetting.Option

We support all values in the range min...max not just min &amp; max.

toWireFormat

fun toWireFormat(): DoubleRangeUserStyleSettingWireFormat