Skip to content

diogoqueiros/cordova-plugin-point-mobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova Plugin Point Mobile

Cordova barcode scanning plugin for Point Mobile devices

Supported Platforms

  • Android

Installation

cordova plugin add cordova-plugin-point-mobile

Usage

scan

Bind the device callback event. Each call of the scan function will remove the old callback.

const pointMobile = window.cordova.plugins.pointmobile;

pointMobile.scan(
    data => {
      console.log('## Point Mobile barcode received -> ', data);
      console.log('barcode: ', data.barcode);
      console.log('barcode type: ', data.type);
    },
    error => {
      console.log('## Point Mobile error -> ', error);
    },
);

cancel

Unbind the current callback function returned by scan function.

pointMobile.cancel();

About

Cordova barcode scanning plugin for Point Mobile devices

Resources

License

Stars

Watchers

Forks

Packages

No packages published