UserStyleSetting.ColorUserStyleSetting


@RequiresApi(value = 34)
public final class UserStyleSetting.ColorUserStyleSetting extends UserStyleSetting


A ColorUserStyleSetting allows the user to select colour(s) from a list of predefined choices.

Summary

Nested types

A Builder for ColorUserStyleSetting.

Represents choice within a ColorUserStyleSetting, these must be enumerated up front.

A Builder for ColorOption.

Inherited methods

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

Used by the style configuration UI.

final @NonNull UserStyleSetting.Option

Returns the default for when the user hasn't selected an option.

final int

The default option index, used if nothing has been selected within the options list.

final @NonNull CharSequence

Localized description string displayed under the displayName.

final @NonNull CharSequence

Localized human readable name for the element, used in the userStyle selection UI.

final Icon

Icon for use in the companion editor style selection UI.

final @NonNull UserStyleSetting.Id

Identifier for the element, must be unique.

@NonNull UserStyleSetting.Option

Translates an option name into an option.

final @NonNull List<@NonNull UserStyleSetting.Option>

List of options for this UserStyleSetting.

final UserStyleSetting.WatchFaceEditorData

Optional data for an on watch face editor, this will not be sent to the companion and its contents may be used in preference to other fields by an on watch face editor.

int
@NonNull String