UserStyleSetting.BooleanUserStyleSetting

public final class UserStyleSetting.BooleanUserStyleSetting extends UserStyleSetting


A BooleanUserStyleSetting represents a setting with a true and a false setting.

Summary

Public constructors

BooleanUserStyleSetting(
    UserStyleSetting.Id id,
    Resources resources,
    @StringRes int displayNameResourceId,
    @StringRes int descriptionResourceId,
    Icon icon,
    Collection<WatchFaceLayer> affectsWatchFaceLayers,
    boolean defaultValue
)

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

Public methods

final boolean

Returns the default value.

Inherited methods

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

Translates an option name into an option.

int
@NonNull String

Public constructors

BooleanUserStyleSetting

public final BooleanUserStyleSetting(