Class BarcodeItem
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BarcodeItem implements Parcelable
Data about the scanned barcode.
-
-
Field Summary
Fields Modifier and Type Field Description private final BarcodeFormat
type
private final Integer
count
private final String
text
private final String
textWithExtension
private final List<Byte>
rawBytes
private final BaseDocumentFormat
formattedResult
-
Constructor Summary
Constructors Constructor Description BarcodeItem(BarcodeFormat type, Integer count, String text, String textWithExtension, List<Byte> rawBytes, BaseDocumentFormat formattedResult)
-
Method Summary
Modifier and Type Method Description final BarcodeFormat
getType()
Recognized barcode symbology. final Integer
getCount()
Number of recognized barcodes of this symbology and value. final String
getText()
Recognized value of the barcode. final String
getTextWithExtension()
Recognized barcode value with extension (if available). final List<Byte>
getRawBytes()
Array of raw bytes that compose the recognized barcode. final BaseDocumentFormat
getFormattedResult()
Formatted barcode document (if parsed successfully). final JSONObject
toJson()
-
-
Constructor Detail
-
BarcodeItem
BarcodeItem(BarcodeFormat type, Integer count, String text, String textWithExtension, List<Byte> rawBytes, BaseDocumentFormat formattedResult)
-
-
Method Detail
-
getType
final BarcodeFormat getType()
Recognized barcode symbology.
-
getTextWithExtension
final String getTextWithExtension()
Recognized barcode value with extension (if available).
-
getRawBytes
final List<Byte> getRawBytes()
Array of raw bytes that compose the recognized barcode.
-
getFormattedResult
final BaseDocumentFormat getFormattedResult()
Formatted barcode document (if parsed successfully).
-
toJson
final JSONObject toJson()
-
-
-
-