UserStyleSetting.ListUserStyleSetting

public class UserStyleSetting.ListUserStyleSetting extends UserStyleSetting


A ListStyleCategory represents a setting with options selected from a List.

Summary

Nested types

UserStyleSetting.ListUserStyleSetting.ListOption

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

Public constructors

ListUserStyleSetting(
    UserStyleSetting.Id id,
    Resources resources,
    @StringRes int displayNameResourceId,
    @StringRes int descriptionResourceId,
    Icon icon,
    List<UserStyleSetting.ListUserStyleSetting.ListOption> options,
    Collection<WatchFaceLayer> affectsWatchFaceLayers,
    UserStyleSetting.ListUserStyleSetting.ListOption defaultOption
)

Constructs a ListUserStyleSetting where ListUserStyleSetting.displayName and ListUserStyleSetting.description are specified as resources.

Inherited methods

From class UserStyleSetting
boolean
equals(Object other)
@NonNull UserStyleSetting.Option

Translates an option name into an option.

int
@NonNull String

Public constructors

ListUserStyleSetting

public final ListUserStyleSetting(
    UserStyleSetting.Id id,
    Resources resources,
    @StringRes int displayNameResourceId,
    @StringRes int descriptionResourceId,