zebradatawedge-capacitor-plugin
v0.1.2
Published
Capacitor Plugin for relaying scan events from Zebra DataWedge on Android devices
Downloads
5
Readme
ZebraDatawedge Capacitor Plugin
Capacitor Plugin for relaying scan events from Zebra DataWedge on Android devices.
Install
npm install zebradatawedge-capacitor-plugin
npx cap sync
Datawedge configuration
Tested with version: 11.3
- [x] Profile Enable
- Applications
- Choose your Capacitor application. * for activity
- Barcode input
- [x] Enabled
- [x] Hardware Trigger
- Keystroke output
- [ ] Enabled
- Intent output
- [x] Enabled
- Intent action: com.datawedgecapacitorplugin.ACTION
- Intent category: leave blank
- Itent delivery: (x) Broadast intent
Example
import {ZebraDataWedge, type ZebraDataWedgeScanResult} from 'zebradatawedge-capacitor-plugin'
ZebraDataWedge.addListener('newScanEvent', (scanResult: ZebraDataWedgeScanResult) => {
console.log('newScanEvent', `Data:${scanResult.data} Type:${scanResult.labelType} From:${scanResult.source}`)
})