1.0.0 • Published 5 years ago

cordova-plugin-google-mobile-vision-barcode-scanner v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

cordova-plugin-google-mobile-vision-barcode-scanner

Purpose of this Project

Enable cordova / phonegap to scan barcodes using Google Mobile Vision

Installation

cordova plugin add cordova-plugin-google-mobile-vision-barcode-scanner

Usage

To call the plugin first get default scan settings from cordova.plugins.scanner.getDefaultSettings(). Then call cordova.plugins.scanner.startScanning().

var settings = cordova.plugins.scanner.getDefaultSettings();

cordova.plugins.scanner.startScanning(
  p_Result => {
    alert(p_Result);
  }, 
  p_Error => {
    throw p_Error
  }, 
  settings
);

Output

startScanning() returns a string with the scan result.