Enum Class BarcodeSelectionMethod

java.lang.Object
java.lang.Enum<BarcodeSelectionMethod>
io.scanbot.sdk.barcode.BarcodeSelectionMethod
All Implemented Interfaces:
Serializable, Comparable<BarcodeSelectionMethod>, Constable

public enum BarcodeSelectionMethod extends Enum<BarcodeSelectionMethod>
The method used to select barcodes.
  • Enum Constant Details

    • ALL

      public static final BarcodeSelectionMethod ALL
      All detected barcodes are returned.
    • CENTER

      public static final BarcodeSelectionMethod CENTER
      Only the single barcode touching the center of the frame is returned. Selecting this option disables frame accumulation.
    • CENTER_CLOSEST

      public static final BarcodeSelectionMethod CENTER_CLOSEST
      Only the barcode closest to the center of the frame is returned. Selecting this option disables frame accumulation.
  • Method Details

    • values

      public static BarcodeSelectionMethod[] 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 BarcodeSelectionMethod 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