0.0.2 • Published 6 years ago

cordova-cs-customscanner v0.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Cordova Custom Scanner Plugin

Simple plugin that scans QR code and Bar code with zoom and flash light.

Using

Create a new Cordova Project

$ cordova create hello com.example.helloapp Hello

Install the plugin

$ cd hello
$ cordova plugin add cordova-cs-customscanner
	customscan.scan(
		      function (result) {
		          
						if(!result.cancelled == true){
							alert("Scanning Success:" + result.text)
						}
		      },
		      function (error) {
		          alert("Scanning failed: " + error);
					
		      },{
				  "preferFrontCamera" : false, // iOS 
				  "showFlipCameraButton" : true, // iOS 
				  "showTorchButton" : true // iOS
			  }
		   );

Install iOS 

    cordova platform add ios
    
Run the code

    cordova run 

## More Info