Cordova Plugin Urovo Device Scanner
- Android
cordova plugin add com.urovoscanner
const urovo = window.cordova.plugins.CordovaPluginUrovoScanner;
urovo.scan(
data => {
console.log('## Urovo Scanner barcode received: ', data);
console.log('barcode: ', data.barcode);
console.log('barcode type: ', data.type);
},
error => {
console.log('## Urovo Scanner error: ', error);
},
);
Unbind the current callback function returned by scan function. Stop scanner device activity.
urovo.cancel();