Enum Class CameraHelper.CameraLevel

java.lang.Object
java.lang.Enum<CameraHelper.CameraLevel>
com.digimarc.capture.camera.CameraHelper.CameraLevel
All Implemented Interfaces:
Serializable, Comparable<CameraHelper.CameraLevel>, Constable
Enclosing class:
CameraHelper

public static enum CameraHelper.CameraLevel extends Enum<CameraHelper.CameraLevel>
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.
  • Enum Constant Details

    • Camera1

      public static final CameraHelper.CameraLevel Camera1
      Camera1 API will always be used no matter what APIs the device supports.
    • Camera2

      public static final CameraHelper.CameraLevel 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 public static final CameraHelper.CameraLevel 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

      public static CameraHelper.CameraLevel[] 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

      public static CameraHelper.CameraLevel valueOf(String name)
      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 name
      NullPointerException - if the argument is null