1.0.1 • Published 3 years ago

cordova-plugin-point-mobile v1.0.1

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

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();