Scanner.toggleLaser()

Overview

Allows the laser beam to be switched on or off.

Use cases

Have a script toggle the laser on to automate scanning and the user will not need to manually pull the trigger.

Format

Scanner.toggleLaser(laserEnable);

Parameter Description Type Required
laserEnable Set this parameter to true to switch on the beam, false to switch off the beam. Boolean Required

Example

Copy
/* The device's laser scanner is turned on.
 */
 
 Scanner.toggleLaser(true);