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 Bitmap
image
private final String
textWithExtension
private final String
text
private final ByteArray
rawBytes
private final Integer
numBits
private Array<ResultPoint>
resultPoints
private final BarcodeFormat
barcodeFormat
private final GenericDocument
formattedResult
private final BarcodeFormattedData
formattedData
private final Map<BarcodeMetadataKey, String>
metadata
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description final Bitmap
getImage()
final Unit
setImage(Bitmap image)
final String
getTextWithExtension()
final String
getText()
final ByteArray
getRawBytes()
final Integer
getNumBits()
final Array<ResultPoint>
getResultPoints()
final Unit
setResultPoints(Array<ResultPoint> resultPoints)
final BarcodeFormat
getBarcodeFormat()
Representing the format of the barcode that was decoded final GenericDocument
getFormattedResult()
Formatted result represented by the barcode content final BarcodeFormattedData
getFormattedData()
Allows to set additional data encoded in barcode such as title and subtitle final Map<BarcodeMetadataKey, String>
getMetadata()
Additional metadata of the barcode final Unit
addResultPoints(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)
-
-
-
-