com.qualcomm.robotcore.hardware

## Interface SwitchableLight

- All Superinterfaces:
    Light
  All Known Implementing Classes:
    LED, LightMultiplexor

      public interface SwitchableLight
      extends Light

  `SwitchableLight` instances are `Light`s whose on/off status can be programmatically manipulated.
  See Also:
    `Light`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `enableLight(boolean enable)` Turns the light on or off.

    - ### Methods inherited from interface com.qualcomm.robotcore.hardware.Light

      `isLightOn`

- - ### Method Detail

    - #### enableLight

          void enableLight(boolean enable)

      Turns the light on or off.
      Parameters:
        `enable` - if true, the light turns on; otherwise the light turns off