Table of contents
Swift
Objective-C

BarcodeScanResult

BarcodeScanResult is a result class that contains all decoded barcodes and their associated info from a single scan.

Definition

Assembly: DynamsoftBarcodeReaderBundle.aar

Namespace: com.dynamsoft.dbrbundle.ui

class BarcodeScanResult

Methods

Method Description
getBarcodes Returns an array of BarcodeResultItem, which represents a single barocde result.
getResultStatus Returns the status of the BarcodeScanResult, which can indicate success or failure.
getErrorCode Returns the error code should something go wrong during the barcode recognition process.
getErrorString Returns the error message associated with the error code should something go wrong during the barcode recognition process.

getBarcodes

Returns an array of BarcodeResultItem, which represents a single barocde result and is the most basic unit of the captured results.

BarcodeResultItem[] getBarcodes();

Return Value

An array of BarcodeResultItems. Each BarcodeResultItem corresponds to a single barcode.

getResultStatus

Returns the status of the BarcodeScanResult, which can be one of finished, canceled or exception.

@EnumResultStatus
int getResultStatus();

Return Value

The status of the barcode result, of type EnumResultStatus.

  • RS_FINISHED: The barcode scanning is finished.
  • RS_CANCELED: The barcode scanning activity is closed before the process is finished.
  • RS_EXCEPTION: Failed to start barcode scanning or an error occurs when scanning the barcodes.

getErrorCode

Returns the error code should something go wrong during the barcode recognition process.

int getErrorCode();

Return Value

An integer representing a EnumErrorCode.

getErrorString

Returns the error message associated with the error code should something go wrong during the barcode recognition process.

String getErrorString();

Return Value

A string representing the message of a EnumErrorCode.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: