Velocity API: Scanner.toggleLaser()

Version 1

    Return To Index

    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);
    ParameterDsecriptionTypeRequired
    laserEnableset this parameter to true to enable the laser, false to disable the laser.BooleanRequired

     

    Example

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