public class BarcodeItem
Encapsulates the result of decoding a barcode within an image.
public BarcodeItem(@NotNull
java.lang.String text,
@NotNull
kotlin.Array[] rawBytes,
int numBits,
@Nullable
ResultPoint[] resultPoints,
@NotNull
BarcodeFormat barcodeFormat,
@Nullable
io.scanbot.barcodescanner.model.BarCodeFormattedResult formattedResult,
@Nullable
BarcodeFormattedData formattedData)
Encapsulates the result of decoding a barcode within an image.
text - rawBytes - numBits - resultPoints - barcodeFormat - Representing the format of the barcode that was decodedformattedResult - Formatted result represented by the barcode contentformattedData - Allows to set additional data encoded in barcode such as title and subtitlepublic BarcodeItem(@NotNull
java.lang.String text,
@NotNull
kotlin.Array[] rawBytes,
int numBits,
@Nullable
ResultPoint[] resultPoints,
@NotNull
BarcodeFormat barcodeFormat,
@Nullable
io.scanbot.barcodescanner.model.BarCodeFormattedResult barcodeDocumentFormat,
@Nullable
BarcodeFormattedData formattedData,
@Nullable
android.graphics.Bitmap image)
@JvmOverloads
public BarcodeItem(@NotNull
java.lang.String text,
@NotNull
kotlin.Array[] rawBytes,
@Nullable
ResultPoint[] resultPoints,
@NotNull
BarcodeFormat format,
@Nullable
io.scanbot.barcodescanner.model.BarCodeFormattedResult documentFormat,
@Nullable
BarcodeFormattedData formattedData,
@Nullable
android.graphics.Bitmap image)
@JvmOverloads
public BarcodeItem(@NotNull
java.lang.String text,
@NotNull
kotlin.Array[] rawBytes,
@Nullable
ResultPoint[] resultPoints,
@NotNull
BarcodeFormat format,
@Nullable
io.scanbot.barcodescanner.model.BarCodeFormattedResult documentFormat,
@Nullable
BarcodeFormattedData formattedData)
@JvmOverloads
public BarcodeItem(@NotNull
java.lang.String text,
@NotNull
kotlin.Array[] rawBytes,
@Nullable
ResultPoint[] resultPoints,
@NotNull
BarcodeFormat format,
@Nullable
io.scanbot.barcodescanner.model.BarCodeFormattedResult documentFormat)
@JvmOverloads
public BarcodeItem(@NotNull
java.lang.String text,
@NotNull
kotlin.Array[] rawBytes,
@Nullable
ResultPoint[] resultPoints,
@NotNull
BarcodeFormat format)
public BarcodeItem(@NotNull
BarcodeItem item,
@Nullable
BarcodeFormattedData formattedData)
@Nullable public android.graphics.Bitmap getImage()
public void setImage(@Nullable
android.graphics.Bitmap p)
public void addResultPoints(@Nullable
ResultPoint[] newPoints)
@NotNull public java.lang.String getText()
@NotNull public kotlin.Array[] getRawBytes()
public int getNumBits()
@Nullable public ResultPoint[] getResultPoints()
public void setResultPoints(@Nullable
ResultPoint[] p)
p - @NotNull public BarcodeFormat getBarcodeFormat()
Representing the format of the barcode that was decoded
@Nullable public io.scanbot.barcodescanner.model.BarCodeFormattedResult getFormattedResult()
Formatted result represented by the barcode content
@Nullable public BarcodeFormattedData getFormattedData()
Allows to set additional data encoded in barcode such as title and subtitle