Table of contents
Swift
Objective-C

This documentation is deprecated. It applies only to legacy version 9.x of Barcode Reader and must not be used for new development.

Please refer to the latest documentation and Migration Guide, which supersede this content.

TextResult

interface TextResult

  • barcodeText: string

    The barcode text.

  • barcodeFormat: number | EnumBarcodeFormat

    The barcode format.

  • barcodeFormatString: string

    Barcode type in string.

  • barcodeBytes: number[]

    The barcode content in a byte array.

  • localizationResult: LocalizationResult

    The corresponding localization result.

let reader = await Dynamsoft.DBR.BarcodeReader.createInstance();
let results = await reader.decode(imageSource);
for(let result of results){
  console.log(result.barcodeText);
}

This page is compatible for:

Is this page helpful?

YesYes NoNo