DoubleRangeUserStyleSetting
Kotlin
|Java
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 |
getOptionForId(optionId: String) We support all values in the range min...max not just min & 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
getOptionForId
fun getOptionForId(optionId: String): UserStyleSetting.Option
We support all values in the range min...max not just min & max.
toWireFormat
fun toWireFormat(): DoubleRangeUserStyleSettingWireFormat