BarcodeScanner

Scans barcodes using the camera for WP8 devices.
Simon Chan0.9.06
platforms: wp8
$ cordova plugin add org.bloxlab.barcodescanner

BarcodeScannerWP8

Cordova/PhoneGap plugin to enable barcode scanning on Windows Phone 8 using the device's camera.

Licence

MIT

Installation

Using CLI:

Usage

Call the method window.cordova.plugins.barcodeScanner.scan, passing in a success and fail call back. Example:

        function scanBarcode() {
            function onSuccess(result) {
                console.log("Barcode is: " + result.text);
                console.log("Barcode format: " + result.format);
            }

            function onFail(error) {
                console.log(error);
            }

            window.cordova.plugins.barcodeScanner.scan(onSuccess, onFail);
        }

(Device will vibrate after detecting a barcode.)