public static enum CameraCapabilities.FlashMode extends Enum<CameraCapabilities.FlashMode>
Enum Constant and Description |
---|
AUTO
Flash will be fired automatically when required.
|
NO_FLASH
No flash.
|
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 | Method and Description |
---|---|
static CameraCapabilities.FlashMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CameraCapabilities.FlashMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CameraCapabilities.FlashMode NO_FLASH
public static final CameraCapabilities.FlashMode AUTO
android.hardware.Camera.Parameters#FLASH_MODE_OFF}.
public static final CameraCapabilities.FlashMode OFF
android.hardware.Camera.Parameters#FLASH_MODE_OFF}.
public static final CameraCapabilities.FlashMode ON
android.hardware.Camera.Parameters#FLASH_MODE_ON}.
public static final CameraCapabilities.FlashMode TORCH
android.hardware.Camera.Parameters#FLASH_MODE_TORCH}.
public static final CameraCapabilities.FlashMode RED_EYE
android.hardware.Camera.Parameters#FLASH_MODE_RED_EYE}.
public static CameraCapabilities.FlashMode[] values()
for (CameraCapabilities.FlashMode c : CameraCapabilities.FlashMode.values()) System.out.println(c);
public static CameraCapabilities.FlashMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null