Skip to content

cordova plugin for newland MT65,MT90.you can install it to your cordova app and use offered js api to get scanning result or change scanner's setting.

License

Notifications You must be signed in to change notification settings

victorsosa/BarcodeScannerPlugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BarcodeScannerPlugin

This is a cordova plugin for newland MT65,MT90.

You can install it to your cordova app and use offered js api to get scanning result or change scanner's setting.

Use sample:https://github.com/feifly6666/CordovaPluginDemo

How to install

①Download the plugin and extract it.

②Move to your cordova project folder and execute the following command

cordova plugin add ../extract path/BarcodeScannerPlugin/

JS API

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

Method Arg1 Arg2 Comment
nlscan.plugins.barcodescanner.scan() null null start to scan
nlscan.plugins.barcodescanner.show(arg1) scan result null In BarcodeScanner.js the scanning result is set to a textarea(id is "outputArea"),you can modify it to other dom object.Actually, this method is for Java code.
nlscan.plugins.barcodescanner.scanSetting([arg1,arg2]) EXTRA_SCAN_POWER 0 or 1 0: Disable scanning
1: Enable scanning
EXTRA_TRIG_MODE 0 or 1 or 2 0: Trigger mode is normal trigger
1: Trigger mode is continuous trigger
2: Trigger mode is timeout trigger
EXTRA_SCAN_NOTY_SND 0 or 1 0: Turn off the voice prompts
1: Turn on the voice prompts

About

cordova plugin for newland MT65,MT90.you can install it to your cordova app and use offered js api to get scanning result or change scanner's setting.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 89.9%
  • JavaScript 10.1%