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

LongRangeUserStyleSetting

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

A LongRangeUserStyleSetting represents a setting with a Long value in the range minimumValue..maximumValue.

Summary

Nested classes

Represents an option a Long in the range minimumValue..maximumValue.

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

Public methods
Long

Returns the default value.

Long

Returns the maximum value.

Long

Returns the minimum value.

UserStyleSetting.Option

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

LongRangeUserStyleSettingWireFormat

Inherited functions
Inherited properties

Public constructors

<init>

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

Public methods

getDefaultValue

fun getDefaultValue(): Long

Returns the default value.

getMaximumValue

fun getMaximumValue(): Long

Returns the maximum value.

getMinimumValue

fun getMinimumValue(): Long

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(): LongRangeUserStyleSettingWireFormat