activateScanner static method
void
activateScanner(
- bool activate
)
Implementation
static void activateScanner(bool activate){
/**
SUSPEND_PLUGIN: suspends the scanner so it is temporarily inactive when
switching from the WAITING or SCANNING state.
SCANNER_STATUS notification broadcasts IDLE state
RESUME_PLUGIN: resumes the scanner when changing from the SUSPEND_PLUGIN
suspended state.
SCANNER_STATUS notification broadcasts WAITING and
SCANNING states, rotating between each depending on
whether scanning is taking place. In the WAITING state
it is expecting an action from the user such as a trigger
press. In the SCANNING state it is actively performing a
scan resulting from an action such as a trigger press
*/
String command = activate ? 'RESUME_PLUGIN' : 'SUSPEND_PLUGIN';
_sendDataWedgeCommand(_scannerPlugin, command);
}