LampArrayUpdateRequestedEventArgs Class
Definition
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 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
- 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
Demonstrates how to control RGB lighting of peripheral devices using the Windows.Devices.Lights and Windows.Devices.Lights.Effects APIs.
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. |