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 >
Resource Base
Table of contents

License Initialization

Get a trial key

  • The BarcodeReader module of Dynamsoft Capture Vision needs a valid license to work.
  • A time-limited public trial license is available for every new device for the first use of Dynamsoft Capture Vision. You can find the public trial license on the following parts of this page.
  • If your public trial key is expired, please visit Private Trial License Page to get a 30-day trial extension.

Get a full license

Initialize the license

The following code snippets are using the public trial license to initialize the license. You can replace the public trial license with your own license key.

  • React Native
  • Flutter
  • Xamarin.Forms
  • Cordova
  1. // Open the **App.js** file. In componentDidMount, add the following code:
    componentDidMount() {
       (async () => {
      try {
         await DCVBarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9")
      } catch (e) {
         console.log(e)
      }
       })();
    }
    
  2. void main() async {
       WidgetsFlutterBinding.ensureInitialized();
       try {
      await DCVBarcodeReader.initLicense(license: 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9');
       } catch (e) {
      print('license error = $e');
       }
    }
    
  3. public partial class App : Application, ILicenseVerificationListener
    {
       public static IDCVBarcodeReader barcodeReader;
       public static IDCVCameraEnhancer camera;
       public App(IDCVCameraEnhancer dce, IDCVBarcodeReader dbr)
       {
          InitializeComponent();
          camera = dce;
          barcodeReader = dbr;
          barcodeReader.InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", this);
       }
       public void LicenseVerificationCallback(bool isSuccess, string msg)
       {
          if (!isSuccess)
          {
             System.Console.WriteLine(msg);
          }
       }
    }
    
  4. try {
       await Dynamsoft.DCVBarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
    } catch (e) {
       console.log(e)
    }
    

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    Change +
    © 2003–2023 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support