0.1.2 • Published 2 years ago
zebradatawedge-capacitor-plugin v0.1.2
ZebraDatawedge Capacitor Plugin
Capacitor Plugin for relaying scan events from Zebra DataWedge on Android devices.
Install
npm install zebradatawedge-capacitor-plugin
npx cap syncDatawedge configuration
Tested with version: 11.3
- Profile Enable
- Applications- Choose your Capacitor application. * for activity
 
- Barcode input- Enabled
- Hardware Trigger
 
- Keystroke output- Enabled
 
- Intent output- 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}`)
})