UserStyleSetting.Option
public abstract class UserStyleSetting.Option
UserStyleSetting.BooleanUserStyleSetting.BooleanOption |
This class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
UserStyleSetting.ColorUserStyleSetting.ColorOption |
This class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotsOption |
This class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
UserStyleSetting.CustomValueUserStyleSetting.CustomValueOption |
This class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
UserStyleSetting.DoubleRangeUserStyleSetting.DoubleRangeOption |
This class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
UserStyleSetting.LargeCustomValueUserStyleSetting.CustomValueOption |
This class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
UserStyleSetting.ListUserStyleSetting.ListOption |
This class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
UserStyleSetting.LongRangeUserStyleSetting.LongRangeOption |
This class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Represents a choice within a style setting which can either be an option from the list or a an arbitrary value depending on the nature of the style setting.
Summary
Nested types |
|---|
public final class UserStyleSetting.Option.IdThis class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public constructors |
|---|
|
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public methods |
|
|---|---|
boolean |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
final @NonNull Collection<@NonNull UserStyleSetting> |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
final @NonNull UserStyleSetting.Option.Id |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
int |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
@NonNull String |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public constructors
Option
publicOption(@NonNull UserStyleSetting.Option.Id id)
This constructor is unused (the parent class is sealed), but is required to make tooling happy.
Public methods
getChildSettings
public final @NonNull Collection<@NonNull UserStyleSetting>getChildSettings()
The list of child UserStyleSettings, if any, forming a hierarchy of UserStyleSettings. These must be in UserStyleSchema.userStyleSettings. Child UserStyleSettings are deemed to be active if the Option is selected by the UserStyle. This is particularly important is there are multiple ComplicationSlotsUserStyleSettings, only one of which is allowed to be active at any time.
getId
public final @NonNull UserStyleSetting.Option.IdgetId()
Machine readable Id for the style setting. Identifier for the option (or the option itself for CustomValueUserStyleSetting.CustomValueOption), must be unique within the UserStyleSetting. Short ids are encouraged.