Scanner.enable()

Overview

Allows the scanner to be switched on or off, effectively enabling or disabling the trigger.

Format

Scanner.enable(enableFlag);

Parameter Description Type Required
enableFlag Set this parameter to true to enable the scanner, or false to disable the scanner. Boolean Required

Example

Copy
/* Disable the scanner
 */
 
 Scanner.enable(false);