UserStyleSetting.LongRangeUserStyleSetting.LongRangeOption


Note: As of July 10, 2024, watch faces must use the Watch Face Format in order to be installed on new watches that launch with Wear OS 5 pre-installed. Learn more about the user-facing changes in this Help Center article.

Additionally, starting in early 2025 (specific date to be announced during Q4 2024), all new watch faces published on Google Play must use the Watch Face Format.

public final class UserStyleSetting.LongRangeUserStyleSetting.LongRangeOption extends UserStyleSetting.Option


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

Summary

Public constructors

LongRangeOption(long value)

Constructs a LongRangeOption.

Public methods

final long
@NonNull String

Inherited methods

From androidx.wear.watchface.style.UserStyleSetting.Option
boolean
equals(Object other)
final @NonNull Collection<@NonNull UserStyleSetting>

The list of child UserStyleSettings, if any, forming a hierarchy of UserStyleSettings.

final @NonNull UserStyleSetting.Option.Id

Machine readable Id for the style setting.

int

Public constructors

LongRangeOption

Added in 1.0.0
public LongRangeOption(long value)

Constructs a LongRangeOption.

Parameters
long value

The value of this LongRangeOption

Public methods

getValue

Added in 1.0.0
public final long getValue()

toString

public @NonNull String toString()