Enum Constant and Description |
---|
AUTO
Flash will be fired automatically when required.
|
OFF
Flash will not be fired.
|
ON
Flash will always be fired during snapshot.
|
RED_EYE
Flash will be fired in red-eye reduction mode.
|
TORCH
Constant emission of light during preview, auto-focus and snapshot.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
FALLBACK_LIST |
java.lang.String |
value |
Modifier and Type | Method and Description |
---|---|
static FlashMode |
get(java.lang.String string) |
static FlashMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FlashMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlashMode ON
public static final FlashMode OFF
public static final FlashMode AUTO
public static final FlashMode TORCH
public static final FlashMode RED_EYE
public static final java.lang.String[] FALLBACK_LIST
public final java.lang.String value
public static FlashMode[] values()
for (FlashMode c : FlashMode.values()) System.out.println(c);
public static FlashMode 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 static FlashMode get(java.lang.String string)