Package io.scanbot.sdk.barcode.entity
Class BarcodeItem
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BarcodeItem implements Parcelable
Encapsulates the result of decoding a barcode within an image.
-
-
Field Summary
Fields Modifier and Type Field Description private Bitmapimageprivate final StringtextWithExtensionprivate final Stringtextprivate final ByteArrayrawBytesprivate final IntegernumBitsprivate Array<ResultPoint>resultPointsprivate final BarcodeFormatbarcodeFormatprivate final GenericDocumentformattedResultprivate final BarcodeFormattedDataformattedDataprivate final Map<BarcodeMetadataKey, String>metadata
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description final BitmapgetImage()final UnitsetImage(Bitmap image)final StringgetTextWithExtension()final StringgetText()final ByteArraygetRawBytes()final IntegergetNumBits()final Array<ResultPoint>getResultPoints()final UnitsetResultPoints(Array<ResultPoint> resultPoints)final BarcodeFormatgetBarcodeFormat()Representing the format of the barcode that was decoded final GenericDocumentgetFormattedResult()Formatted result represented by the barcode content final BarcodeFormattedDatagetFormattedData()Allows to set additional data encoded in barcode such as title and subtitle final Map<BarcodeMetadataKey, String>getMetadata()Additional metadata of the barcode final UnitaddResultPoints(Array<ResultPoint> newPoints)-
-
Constructor Detail
-
BarcodeItem
BarcodeItem(String text, ByteArray rawBytes, Integer numBits, Array<ResultPoint> resultPoints, BarcodeFormat barcodeFormat, GenericDocument barcodeDocumentFormat, BarcodeFormattedData formattedData, Bitmap image, Map<BarcodeMetadataKey, String> metadata)
-
BarcodeItem
BarcodeItem(String text, ByteArray rawBytes, Array<ResultPoint> resultPoints, BarcodeFormat format, GenericDocument documentFormat, BarcodeFormattedData formattedData, Bitmap image, Map<BarcodeMetadataKey, String> metadata)
-
BarcodeItem
BarcodeItem(String text, ByteArray rawBytes, Array<ResultPoint> resultPoints, BarcodeFormat format, GenericDocument documentFormat, BarcodeFormattedData formattedData, Map<BarcodeMetadataKey, String> metadata)
-
BarcodeItem
BarcodeItem(String text, ByteArray rawBytes, Array<ResultPoint> resultPoints, BarcodeFormat format, GenericDocument documentFormat, Map<BarcodeMetadataKey, String> metadata)
-
BarcodeItem
BarcodeItem(String text, ByteArray rawBytes, Array<ResultPoint> resultPoints, BarcodeFormat format, Map<BarcodeMetadataKey, String> metadata)
-
BarcodeItem
BarcodeItem(BarcodeItem item, BarcodeFormattedData formattedData)
-
BarcodeItem
BarcodeItem(String text, ByteArray rawBytes, Integer numBits, Array<ResultPoint> resultPoints, BarcodeFormat barcodeFormat, GenericDocument formattedResult, BarcodeFormattedData formattedData, Map<BarcodeMetadataKey, String> metadata)
-
-
Method Detail
-
getTextWithExtension
final String getTextWithExtension()
-
getRawBytes
final ByteArray getRawBytes()
-
getNumBits
final Integer getNumBits()
-
getResultPoints
final Array<ResultPoint> getResultPoints()
-
setResultPoints
final Unit setResultPoints(Array<ResultPoint> resultPoints)
-
getBarcodeFormat
final BarcodeFormat getBarcodeFormat()
Representing the format of the barcode that was decoded
-
getFormattedResult
final GenericDocument getFormattedResult()
Formatted result represented by the barcode content
-
getFormattedData
final BarcodeFormattedData getFormattedData()
Allows to set additional data encoded in barcode such as title and subtitle
-
getMetadata
final Map<BarcodeMetadataKey, String> getMetadata()
Additional metadata of the barcode
-
addResultPoints
final Unit addResultPoints(Array<ResultPoint> newPoints)
-
-
-
-