public enum Flash extends java.lang.Enum<Flash> implements Control
CameraView.setFlash(Flash)| Enum Constant and Description |
|---|
AUTO
Flash mode is chosen by the camera.
|
OFF
Flash is always off.
|
ON
Flash will be on when capturing.
|
TORCH
Flash is always on, working as a torch.
|
| Modifier and Type | Method and Description |
|---|---|
static Flash |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Flash[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Flash OFF
public static final Flash ON
CameraOptions.getSupportedFlash()public static final Flash AUTO
CameraOptions.getSupportedFlash()public static final Flash TORCH
CameraOptions.getSupportedFlash()public static Flash[] values()
for (Flash c : Flash.values()) System.out.println(c);
public static Flash 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 null