Web Demos

BARCODE READER SDK DEMO

Explore the flexibe barcode reading settings to optimize for your specific usage scenario.

WEB TWAIN SDK DEMO

Try the most popular web scanner features: scan images, import local images and PDF files, edit, save to local, upload to database, and etc.

BARCODE READER JAVASCRIPT DEMO

Transform any camera-equipped devices into real-time, browser-based barcode and QR code scanners.

MRZ SCANNER WEB DEMO

Detects the machine-readable zone of a passport, scans the text, and parses into human-readable data.

APP STORE DEMOS

BARCODE READER SDK FOR IOS

BARCODE READER SDK FOR ANDROID

VIEW MORE DEMOS >
Dev Center
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

iOS API Reference

DynamsoftBarcodeReader Class

Initialize

Method Description
init Create an instance of Dynamsoft Barcode Reader.

 

Video decoding Methods

Method Description
setCameraEnhancer Bind a Camera Enhancer instance to the Barcode Reader.
startScanning Start the barcode reading thread.
stopScanning Stop the barcode reading thread.
setDBRTextResultListener Set callback function to process text results generated during frame decoding.
setDBRIntermediateResultListener Set callback function to process intermediate results generated during frame decoding.
minImageReadingInterval The property indicates the minimum interval between two barcode decoding.
setImageSource Set the ImageSource as the source of video streaming.
Property Description
enableResultVerification Enable Result Verification feature to improve the accuracy of barcode results for video streaming barcode decoding.
enableDuplicateFilter Enable Duplicate Filter feature to filter out the duplicate results in the period of duplicateForgetTime for video barcode decoding.
duplicateForgetTime The property of duplicateForgetTime, Default value is 3000(ms).

Note:

  • setDBRTextResultDelegate is deprecated, please use setDBRTextResultListener instead.
  • setDBRIntermediateResultDelegate is deprecated, please use setDBRIntermediateResultListener instead.

 

Image decoding Methods

Method Description
decodeBuffer(ImageData) Decode barcodes from a pixel buffer with width, height, stride and pixel format info.
decodeBuffer Decode barcodes from a pixel buffer with width, height, stride and pixel format info.
decodeFileWithName Decode barcodes from a specified image file.
decodeImage Decode barcodes from an image file in memory.
decodeBase64 Decode barcodes from a base64 encoded string.
decodeFileInMemory Decode barcodes from a file that is read in the memory.

 

License

Method Description
initLicense Read product key and activate the SDK.
setDeviceFriendlyName Sets a human-readable name that identifies the device.

Note:

The following license activation methods are deprecated:

  • license
  • outputLicenseToString
  • initLicenseFromDLS
  • initWithLicenseFromServer

Please use initLicense to activate the license.

 

Parameter and Runtime Settings

Basic

Method Description
getRuntimeSettings Get current runtime settings.
updateRuntimeSettings (with struct) Modify and update the current runtime settings.
updateRuntimeSettings (with preset template) Update runtime settings from one of the preset templates.
resetRuntimeSettings Reset runtime settings to default.

Advanced

Method Description
initRuntimeSettingsWithFile Initialize runtime settings with the settings in a given JSON file.
initRuntimeSettingsWithString Initialize runtime settings with the settings in a given JSON string.
appendTplFileToRuntimeSettings Append a new template file to the current runtime settings.
appendTplStringToRuntimeSettings Append a new template string to the current runtime settings.
allParameterTemplateNames Get the count of the parameter templates.
outputSettingsToFile Output runtime settings to a settings file (JSON file).
outputSettingsToString Output runtime settings to a string.
setModeArgument Set argument value for the specified mode parameter.
getModeArgument Get argument value for the specified mode parameter.

 

Result

Method Description
createIntermediateResult Inits an intermediateResult struct with default values.
getIntermediateResult Get intermediate results.
decodeIntermediateResults Decodes barcode from intermediate results.

 

Status Retrieval

Method Description
getVersion Get version information of SDK.
setLogConfig Set the directory and the saving mode of log. It helps you on debugging.

 

Auxiliary Classes

Note:

  • iDMDLSConnectionParameters is deprecated due to the update of the license. Please use the method initLicense to activate the license instead.

 

Protocol

Protocol Description
DBRTextResultListener Protocol for a delegate to handle callback when text result returned.
DBRIntermediateResultListener Protocol for a delegate to handle callback when intermediate result returned.
DBRLicenseVerificationDelegate Protocol for a delegate to handle callback when license verification message returned.
ImageSource Protocol for producers of images. It can be implemented by programmers to support other image sources, such as external cameras or image filesets.

Note:

 

Enumerations

Note:

The following Enumerations are deprecated and will be removed in the future.

  • EnumProduct
  • EnumDMChargeWay
  • EnumDMLicenseModule
  • EnumDMUUIDGenerationMethod

 

Others

View the Error Code

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • Version 9.x
    • Version 9.4.0
    • Version 9.2.13
    • Version 9.2.11
    • Version 9.2.10
    • Version 9.0.2
    • Version 9.0.1
    • Version 9.0.0
  • Version 8.x
    • Version 8.9.3
    • Version 8.9.1
    • Version 8.9.0
    • Version 8.8.0
    • Version 8.6.0
    • Version 8.4.0
    • Version 8.2.1
    • Version 8.2.0
    • Version 8.1.2
    • Version 8.1.0
    • Version 8.0.0
  • Version 7.x
    • Version 7.6.0
    • Version 7.5.0
Change +
© 2003–2023 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support