Class BarcodeScannerResult

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class BarcodeScannerResult
    extends java.lang.Object
    implements java.lang.AutoCloseable
    The result of barcode scanning.
    • Constructor Summary

      Constructors 
      Constructor Description
      BarcodeScannerResult​(java.util.List<BarcodeItem> barcodes, boolean success)
      Constructs BarcodeScannerResult with the given params.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Closes native resources (images) held by the object.
      java.util.List<BarcodeItem> getBarcodes()
      Getter for barcodes field.
      boolean getSuccess()
      Getter for success field.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BarcodeScannerResult

        public BarcodeScannerResult​(java.util.List<BarcodeItem> barcodes,
                                    boolean success)
        Constructs BarcodeScannerResult with the given params.
        Parameters:
        barcodes - List of found barcodes.
        success - True if any barcodes were found.
    • Method Detail

      • getBarcodes

        public java.util.List<BarcodeItem> getBarcodes()
        Getter for barcodes field. See constructor documentation for more information about the field.
        Returns:
        barcodes
      • getSuccess

        public boolean getSuccess()
        Getter for success field. See constructor documentation for more information about the field.
        Returns:
        success
      • close

        public void close()
        Closes native resources (images) held by the object.
        Specified by:
        close in interface java.lang.AutoCloseable