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 ByteArray
rawBytes
private final GenericDocument
parsedDocument
-
Constructor Summary
Constructors Constructor Description BarcodeItem(Map<String, Object> source)
BarcodeItem(JSONObject json)
BarcodeItem(BarcodeFormat type, Integer count, String text, String textWithExtension, ByteArray rawBytes, GenericDocument parsedDocument)
-
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 ByteArray
getRawBytes()
Representation of the raw data that is contained the recognized barcode. final GenericDocument
getParsedDocument()
The parsed known document format (if parsed successfully). final JSONObject
toJson()
-
-
Constructor Detail
-
BarcodeItem
BarcodeItem(JSONObject json)
-
BarcodeItem
BarcodeItem(BarcodeFormat type, Integer count, String text, String textWithExtension, ByteArray rawBytes, GenericDocument parsedDocument)
-
-
Method Detail
-
getType
final BarcodeFormat getType()
Recognized barcode symbology.
-
getTextWithExtension
final String getTextWithExtension()
Recognized barcode value with extension (if available).
-
getRawBytes
final ByteArray getRawBytes()
Representation of the raw data that is contained the recognized barcode.
-
getParsedDocument
final GenericDocument getParsedDocument()
The parsed known document format (if parsed successfully).
-
toJson
final JSONObject toJson()
-
-
-
-