Package com.digimarc.capture.camera
Enum Class Metadata.FlashMode
- All Implemented Interfaces:
Serializable
,Comparable<Metadata.FlashMode>
,Constable
- Enclosing class:
- Metadata
Note in the definitions below that the actual values for the constants can be different between
Camera1 and Camera2, even though the constant names appear similar. The constants for each value
exist in the following namespaces.
Camera1 - Camera.Parameters Camera2 - CameraMetadata
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCamera1 -FLASH_MODE_AUTO
Camera2 - not usedNo flash present or camera metadata unavailableCamera1 -FLASH_MODE_OFF
Camera2 -FLASH_MODE_OFF
Camera1 -FLASH_MODE_ON
Camera2 -FLASH_MODE_SINGLE
- the flash fired on the last frameCamera1 -FLASH_MODE_RED_EYE
Camera2 - not usedCamera1 -FLASH_MODE_TORCH
Camera2 -FLASH_MODE_TORCH
-
Method Summary
Modifier and TypeMethodDescriptionstatic Metadata.FlashMode
Returns the enum constant of this class with the specified name.static Metadata.FlashMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
None
No flash present or camera metadata unavailable -
Off
Camera1 -FLASH_MODE_OFF
Camera2 -FLASH_MODE_OFF
-
Auto
Camera1 -FLASH_MODE_AUTO
Camera2 - not used -
On
Camera1 -FLASH_MODE_ON
Camera2 -FLASH_MODE_SINGLE
- the flash fired on the last frame -
RedEye
Camera1 -FLASH_MODE_RED_EYE
Camera2 - not used -
Torch
Camera1 -FLASH_MODE_TORCH
Camera2 -FLASH_MODE_TORCH
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-