public static enum UpdateThemeIntentBuilder.ThemeUpdateMode extends java.lang.Enum<UpdateThemeIntentBuilder.ThemeUpdateMode>
| Enum Constant and Description |
|---|
AUTO_LIGHT
Used to set the theme automatically by the light sensor and the day time.
|
AUTO_OS
Used to set the theme automatically by the os
|
AUTO_TIME
Used to set the theme automatically by the day time.
|
DAY
Used to force the usage of the light day theme (always)
|
NIGHT
Used to force the usage of the dark night theme (always)
|
| Modifier and Type | Method and Description |
|---|---|
static UpdateThemeIntentBuilder.ThemeUpdateMode |
fromOrdinal(int ordinal)
Returns the enum for the given ordinal representation
|
int |
toOrdinal()
Returns the ordinal representation of this enum
|
static UpdateThemeIntentBuilder.ThemeUpdateMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UpdateThemeIntentBuilder.ThemeUpdateMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UpdateThemeIntentBuilder.ThemeUpdateMode AUTO_LIGHT
public static final UpdateThemeIntentBuilder.ThemeUpdateMode AUTO_TIME
public static final UpdateThemeIntentBuilder.ThemeUpdateMode DAY
public static final UpdateThemeIntentBuilder.ThemeUpdateMode NIGHT
public static final UpdateThemeIntentBuilder.ThemeUpdateMode AUTO_OS
public static UpdateThemeIntentBuilder.ThemeUpdateMode[] values()
for (UpdateThemeIntentBuilder.ThemeUpdateMode c : UpdateThemeIntentBuilder.ThemeUpdateMode.values()) System.out.println(c);
public static UpdateThemeIntentBuilder.ThemeUpdateMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int toOrdinal()
public static UpdateThemeIntentBuilder.ThemeUpdateMode fromOrdinal(int ordinal)
ordinal - The ordinal representation