Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 769 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 769 Bytes

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