BlueFletch / motorola-datawedge-cordova-plugin

This is a Cordova/Phonegap plugin to interact with Motorola ruggedized Android devices' Barcode Scanners and Magnetic Stripe Readers (eg, ET1, TC55, MC40). The plugin works by interacting with the "DataWedge" application configured to output scan and magstripe read events.
35 stars 38 forks source link

question about multiple screens and this plugin #9

Closed ebeser closed 8 years ago

ebeser commented 9 years ago

I have multiple screens in my application that use the datawedge to push input into the textbox on my screen. Each screen uses the barcode input differently.

How do i register the event processor in the plugin to service the screen that is currently in use? Then when i change screens, i would like to have the button on the MC40 trigger the barcode read, and have the results into the screen displayed? Can you send me a snippet that will do this. Currently each textbox has a dataclick event to process the reads from the camera, but i would like to use the scanner button on the MC40 to do this.