UserStyleSetting.LongRangeUserStyleSetting

public final class UserStyleSetting.LongRangeUserStyleSetting extends UserStyleSetting


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

Summary

Nested types

UserStyleSetting.LongRangeUserStyleSetting.LongRangeOption

Represents an option a Long in the range minimumValue ..

Public fields

final long

The default value.

final long

The maximum value.

final long

The minimum value.

Public constructors

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

Constructs a LongRangeUserStyleSetting where LongRangeUserStyleSetting.displayName and LongRangeUserStyleSetting.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 long defaultValue

The default value.