Package com.digimarc.capture.camera
Enum Class CameraHelper.CameraLevel
- All Implemented Interfaces:
Serializable
,Comparable<CameraHelper.CameraLevel>
,Constable
- Enclosing class:
- CameraHelper
Allows an app to specify what type of camera support (i.e. which camera API and what image format)
it would like to use. Note that specifying a camera level is a request. The camera support used
in a camera session may be different from that requested depending on what capabilities the device
supports.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCamera1 API will always be used no matter what APIs the device supports.Camera2 API will be used if possible, otherwise app will fall back to Camera1.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic CameraHelper.CameraLevel
Returns the enum constant of this class with the specified name.static CameraHelper.CameraLevel[]
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
-
Camera1
Camera1 API will always be used no matter what APIs the device supports. -
Camera2
Camera2 API will be used if possible, otherwise app will fall back to Camera1. RAW support will not be used no matter what the device capabilities are. -
Camera2_Raw
Deprecated.Note that RAW camera support is deprecated and will be removed in a future SDK version.Camera2 API will be used if possible, otherwise app will fall back to Camera1. RAW support will be used if the device supports it and it is specified in the camera configuration parameters.
-
-
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
-