0.1.2 • Published 2 years ago

zebradatawedge-capacitor-plugin v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

  • 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}`)
})

API

0.1.2

2 years ago

0.1.1

2 years ago