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 BarcodeFormattypeprivate final Integercountprivate final Stringtextprivate final StringtextWithExtensionprivate final ByteArrayrawBytesprivate final GenericDocumentparsedDocument
-
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 BarcodeFormatgetType()Recognized barcode symbology. final IntegergetCount()Number of recognized barcodes of this symbology and value. final StringgetText()Recognized value of the barcode. final StringgetTextWithExtension()Recognized barcode value with extension (if available). final ByteArraygetRawBytes()Representation of the raw data that is contained the recognized barcode. final GenericDocumentgetParsedDocument()The parsed known document format (if parsed successfully). final JSONObjecttoJson()-
-
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()
-
-
-
-