Cordova barcode scanning plugin for Point Mobile devices
- Android
cordova plugin add cordova-plugin-point-mobile-85
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 85 barcode received -> ', data);
console.log('barcode: ', data.barcode);
console.log('barcode type: ', data.type);
},
error => {
console.log('## Point Mobile 85 error -> ', error);
},
);
Unbind the current callback function returned by scan function.
pointMobile.cancel();