Skip to content

Cordova plugin to interface with NLSCAN barcode scanners (on Android)

License

Notifications You must be signed in to change notification settings

peoplewareDo/cordova-plugin-nlbarcodescanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-nlbarcodescanner

BarcodeScannerPlugin

Cordova plugin to interface with NLSCAN barcode scanners (on Android) This is a cordova plugin for U9000 - Newland 2DEM3090.

How to install

This plugin follows the Cordova 3.0+ plugin spec, so it can be installed through the Cordova CLI in your existing Cordova project:

cordova plugin add https://github.com/peoplewareDo/cordova-plugin-nlbarcodescanner.git

This plugin is also available on npm if you are using Cordova 5.0+:

cordova plugin add cordova-plugin-nlbarcodescanner

`
console.log( "register didShow received!" );

var listener = function( e ) {
  //log: didShow received! userInfo: {"data":"test"}
  console.log( "didShow received! userInfo: " + JSON.stringify(e)  );
}

window.broadcaster.addEventListener( "didShow", listener);    console.log( "register didShow received!" );

`

JS API

Aftere install BarcodeScanner plugin,you can use the following JS API to get scanning result or change scanner setting.

Dependency

cordova-plugin-broadcaster https://github.com/bsorrentino/cordova-broadcaster

About

Cordova plugin to interface with NLSCAN barcode scanners (on Android)

Resources

License

Stars

Watchers

Forks

Packages

No packages published