Skip to content

paulobouca/cordova-plugin-urovo-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova Plugin Urovo Scanner

Cordova Plugin Urovo Device Scanner

Supported Platforms

  • Android

Installation

cordova plugin add com.urovoscanner

Usage

scan

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);
    },
);

cancel

Unbind the current callback function returned by scan function. Stop scanner device activity.

urovo.cancel();