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

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, affectsLayers: Collection<Layer>, defaultValue: Long)

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,
    affectsLayers: Collection<Layer>,
    defaultValue: Long)

Public methods

getDefaultValue

fun getDefaultValue():