Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Windows.Devices.Lights Namespace

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides APIs for accessing and controlling LampArrays and legacy Lamp devices.

Classes

Name Description
Lamp

Represents a lamp device.

LampArray

Represents a LampArray device attached the system. Currently, only HID LampArrays are supported.

LampAvailabilityChangedEventArgs

Provides data for the AvailabilityChanged event.

LampInfo

Container of various properties of an individual lamp for a specific index.

Enums

Name Description
LampArrayKind

The type of physical device the LampArray is part of.

LampPurposes

Purpose/s of a lamp.

Examples

LampArray sample

Demonstrates how to control RGB lighting of peripheral devices using the Windows.Devices.Lights and Windows.Devices.Lights.Effects APIs.

AutoRGB Sample

Demonstrates how to extract a single, representative color from a desktop screen and use it to illuminate LED lamps on a connected RGB device.

Remarks

LampArray APIs can be used in a game or notification application to control the lights on your keyboard or mouse.

A common scenario for using the Lamp APIs in this namespace is adding a flashlight feature to your app that allows the user to manually turn on and off a device's camera torch light, if one is available.

See also


Feedback

Was this page helpful?