UserStyleSetting.ListUserStyleSetting.ListOption

public final class UserStyleSetting.ListUserStyleSetting.ListOption extends UserStyleSetting.Option


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

Summary

Public fields

final @NonNull CharSequence

Localized human readable name for the setting, used in the style selection UI.

final Icon

Icon for use in the style selection UI.

Public constructors

ListOption(
    UserStyleSetting.Option.Id id,
    Resources resources,
    @StringRes int displayNameResourceId,
    Icon icon
)

Constructs a ListOption.

Inherited methods

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

Public fields

displayName

public final @NonNull CharSequence displayName

Localized human readable name for the setting, used in the style selection UI.

icon

public final Icon icon

Icon for use in the style selection UI.

Public constructors

ListOption

public final ListOption(
    UserStyleSetting.Option.Id id,
    Resources resources,
    @StringRes int displayNameResourceId,
    Icon icon
)

Constructs a ListOption.

Parameters