LampArrayUpdateRequestedEventArgs Class

Definition

Provides event data for the UpdateRequested event.

public ref class LampArrayUpdateRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class LampArrayUpdateRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class LampArrayUpdateRequestedEventArgs
Public NotInheritable Class LampArrayUpdateRequestedEventArgs
Inheritance
Object Platform::Object IInspectable LampArrayUpdateRequestedEventArgs
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

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

Cannot call any methods on the object given by the event handler, outside of the event handler.

No effect progress cannot continue until the event handler has returned, so ensure the minimal is spent within it.

Properties

SinceStarted

Gets the time since the effect was started.

Methods

SetColor(Color)

Sets every lamp index specified in the effect to the desired color.

SetColorForIndex(Int32, Color)

Sets the lamp corresponding to the index to the desired color.

SetColorsForIndices(Color[], Int32[])

Sets the color for multiple lamps. Position within each array maps lamp index to desired color.

SetSingleColorForIndices(Color, Int32[])

Sets all lamps specified to the same color.

Applies to

See also