DataWedge
198
Function Prototype
Parameters
The structure of the broadcast intent that resolves to the soft scan is:
ACTION [String]: "com.symbol.datawedge.api.ACTION"
EXTRA_DATA [String]: "com.symbol.datawedge.api.SOFT_SCAN_TRIGGER"
<parameter>: The parameter as a string, using any of the following:
• START_SCANNING - starts scanning when triggered
• STOP_SCANNING - stops or interrupts scanning when triggered
• TOGGLE_SCANNING - toggles between START_SCANNING and STOP_SCANNING when triggered.
Scanner Input Plugin
The ScannerInputPlugin API command can be used to enable/disable the scanner plug-in being used by the
currently active Profile. Disabling the scanner plug-in effectively disables scanning in that Profile, regardless of
whether the Profile is associated or unassociated. Valid only when Barcode Input is enabled in the active
Profile.
NOTE: Use of this API changes only the runtime status of the scanner; it does not make persistent changes to the Profile.
IMPORTANT: To avoid the unnecessary use of enable/disable scanner API calls, Zebra recommends that apps register to
be notified of changes in scanner status (using the SCANNER_STATUS parameter of the
REGISTER_FOR_NOTIFICATION API). This enables apps to receive scanner status changes immediately rather than
having to query and wait for the result. Status-change notifications include the active Profile name, which permits an app to
use the enable/disable scanner API calls only when status changes effect a relevant Profile.
Function Prototype
Parameters
action: String "com.symbol.datawedge.api.ACTION_SCANNERINPUTPLUGIN"
extra_data: String "com.symbol.datawedge.api.EXTRA_PARAMETER"
<parameter>: The parameter as a string, using either of the following:
Intent i = new Intent();
i.setAction("com.symbol.datawedge.api.ACTION");
i.putExtra("com.symbol.datawedge.api.SOFT_SCAN_TRIGGER", "<parameter>");
Intent i = new Intent();
i.setAction(ACTION);
i.putExtra(EXTRA_DATA, "<parameter>");