cordova-plugin-smartpeak-laser-scanner
v0.0.2
Published
Cordova Laser Scanner Plugin
Downloads
2
Maintainers
Readme
cordova-plugin-smartpeak-laser-scanner
A cordova laser barcode scanner plugin for smartpeak PDA.
Info
PDA of smartpeak company is based on [email protected], and therefore the plugin only test on this device.
You can get information about the device from this page: Rugged Android data collection terminal
Usage
// plugin install
cordova plugin add cordova-plugin-smartpeak-laser-scanner
// init plugin, when deviceReady event fired
LaserScannerUtil.listen(data => {
console.info('scan listening...', data)
}, error => {
console.info('init or scan error: ', error)
})
// close scanner
LaserScannerUtil.close(() => {
console.info('scanner closed.')
}, error => {
console.info('scanner error: ', error)
})
// exec a laser scan by function
LaserScannerUtil.scan(data => {
console.info('scan result: ', data)
}, error => {
console.info('scan error: ', error)
})
// get laser scanner result history
LaserScannerUtil.history(results => {
console.info('scan history: ', results)
}, error => {
console.info('scan error: ', error)
})
Lisence
MIT Lisence.