cordova-cs-customscanner

custom scanner plugin for ios

Usage no npm install needed!

<script type="module">
  import cordovaCsCustomscanner from 'https://cdn.skypack.dev/cordova-cs-customscanner';
</script>

README

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