Package io.scanbot.sdk.barcode
Class BarcodeScannerResult
- java.lang.Object
-
- io.scanbot.sdk.barcode.BarcodeScannerResult
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class BarcodeScannerResult extends java.lang.Object implements java.lang.AutoCloseableThe 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 voidclose()Closes native resources (images) held by the object.java.util.List<BarcodeItem>getBarcodes()Getter for barcodes field.booleangetSuccess()Getter for success field.
-
-
-
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:
closein interfacejava.lang.AutoCloseable
-
-