UserStyleSchema

public final class UserStyleSchema


Describes the list of UserStyleSettings the user can configure.

Summary

Public fields

final @NonNull List<@NonNull UserStyleSetting>

The user configurable style categories associated with this watch face.

Public constructors

UserStyleSchema(
    @NonNull List<@NonNull UserStyleSetting> userStyleSettings
)

Public methods

@NonNull String

Public fields

userStyleSettings

@NonNull
public final @NonNull List<@NonNull UserStyleSettinguserStyleSettings

The user configurable style categories associated with this watch face. Empty if the watch face doesn't support user styling. Note we allow at most one UserStyleSetting.ComplicationSlotsUserStyleSetting and one UserStyleSetting.CustomValueUserStyleSetting in the list.

Public constructors

UserStyleSchema

public final UserStyleSchema(
    @NonNull List<@NonNull UserStyleSetting> userStyleSettings
)
Parameters
@NonNull List<@NonNull UserStyleSetting> userStyleSettings

The user configurable style categories associated with this watch face. Empty if the watch face doesn't support user styling. Note we allow at most one UserStyleSetting.ComplicationSlotsUserStyleSetting and one UserStyleSetting.CustomValueUserStyleSetting in the list.

Public methods

toString

@NonNull
public String toString()