Table of contents
Swift
Objective-C

DSBarcodeScanResult

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

Definition

Assembly: DynamsoftBarcodeReaderBundle.xcframework

  • Objective-C
  • Swift
  1. @interface DSBarcodeScanResult : NSObject
    
  2. class BarcodeScanResult : NSObject
    

Properties

Property Type Description
barcodes NSArray<DSBarcodeResultItem*> * An array of DSBarcodeResultItem, which is the basic item of the captured results.
resultStatus DSResultStatus The status of the BarcodeScanResult, which can indicate success or failure.
errorCode NSInteger The error code should something go wrong during the barcode recognition process.
errorString NSString * The error message associated with the error code should something go wrong during the barcode recognition process.

barcodes

An array of DSBarcodeResultItem, which is the basic item of the captured results and is the most basic unit of the captured results.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign, readonly) NSArray<BarcodeResultItem*>* barcodes;
    
  2. var barcodes: [BarcodeResultItem] {get}
    

resultStatus

The status of the result, which can be one of finished, canceled or exception.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign, readonly) DSResultStatus resultStatus;
    
  2. var resultStatus: ResultStatus {get}
    

Return Value

The status of the barcode result, of type DSResultStatus.

  • 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.

errorCode

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

  • Objective-C
  • Swift
  1. @property (nonatomic, assign, readonly) NSInteger errorCode;
    
  2. var errorCode: Int { get }
    

Return Value

An integer representing a DSError.

errorString

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

  • Objective-C
  • Swift
  1. @property (nonatomic, assign, readonly) NSString * errorMessage;
    
  2. var errorMessage: String? { get }
    

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: