No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
src/windows
www
LICENSE
README.md
package.json
plugin.xml

README.md

cordova-windows-barcode

The sample shows how to build a Windows Universal App using Cordova, C++/WinRT and Dynamsoft Barcode Reader C++ SDK.

Installation

Usage

  1. Follow the steps to get all dependent libraries.

  2. Create a Cordova project for Windows and add the plugin:

    cordova create test com.dynamsoft.test Test
    cd test
    cordova platform add windows
    cordova plugin add <local plugin path>
    
  3. Replace www/js/index.js and www/index.html with example/js/index.js and example/index.html. Here is the JavaScript code for decoding barcodes from an image file:

    cordova.plugins.barcode.decodeFileStream(
          function (result) {
            document.getElementById('results').innerHTML = JSON.stringify(result);
          },
          function (error) {
            document.getElementById('results').innerHTML = error;
          }
       );
  4. Build and run the app:

    cordova run windows -- --arch="x86"
    

    cordova windows barcode

Blog

Building Cordova Plugin with Windows Runtime Component