UserStyleSetting.CustomValueUserStyleSetting

public final class UserStyleSetting.CustomValueUserStyleSetting extends UserStyleSetting


An application specific style setting. This style is ignored by the system editor. This is expected to be used in conjunction with an on watch face editor. Only a single ComplicationSlotsUserStyleSetting is permitted in the UserStyleSchema.

Summary

Nested types

UserStyleSetting.CustomValueUserStyleSetting.CustomValueOption

An application specific custom value.

Public constructors

CustomValueUserStyleSetting(
    Collection<WatchFaceLayer> affectsWatchFaceLayers,
    byte[] defaultValue
)

Constructs a CustomValueUserStyleSetting.

Public methods

@NonNull UserStyleSetting.Option

Translates an option name into an option.

Inherited methods

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

Public constructors

CustomValueUserStyleSetting

public final CustomValueUserStyleSetting(
    Collection<WatchFaceLayer> affectsWatchFaceLayers,
    byte[] defaultValue
)

Constructs a CustomValueUserStyleSetting.

Parameters
Collection<WatchFaceLayer> affectsWatchFaceLayers

Used by the style configuration UI. Describes which watch face rendering layers this style affects.

byte[] defaultValue

The default value ByteArray.

Public methods

getOptionForId

public @NonNull UserStyleSetting.Option getOptionForId(UserStyleSetting.Option.Id optionId)

Translates an option name into an option. This will need to be overridden for userStyle categ