UserStyleSetting.DoubleRangeUserStyleSetting

public final class UserStyleSetting.DoubleRangeUserStyleSetting extends UserStyleSetting


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

Summary

Nested types

UserStyleSetting.DoubleRangeUserStyleSetting.DoubleRangeOption

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

Public fields

final double

Returns the default value.

final double

Returns the maximum value.

final double

Returns the minimum value.

Public constructors

DoubleRangeUserStyleSetting(
    UserStyleSetting.Id id,
    Resources resources,
    @StringRes int displayNameResourceId,
    @StringRes int descriptionResourceId,
    Icon icon,
    double minimumValue,
    double maximumValue,
    Collection<WatchFaceLayer> affectsWatchFaceLayers,
    double defaultValue
)

Constructs a DoubleRangeUserStyleSetting where DoubleRangeUserStyleSetting.displayName and DoubleRangeUserStyleSetting.description are specified as resources.

Public methods

@NonNull UserStyleSetting.Option

We support all values in the range min ...

Inherited methods

From class UserStyleSetting
boolean
equals(Object other)
int
@NonNull String

Public fields

defaultValue

public final double defaultValue

Returns the