LightCapability Enum
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.
Specifies the capability flags defined for a device light.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum LightCapability
[<System.Flags>]
type LightCapability =
- Inheritance
-
LightCapability
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| Rgb | 0 | This constant was deprecated in API level 34. Wrong int based flag with value 0. Use capability flag LIGHT_CAPABILITY_COLOR_RGB instead. Capability for lights that have red, green and blue LEDs to control the light's color. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Brightness | 1 | Capability for lights that could adjust its LED brightness. If the capability is not present the LED can only be turned either on or off. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| ColorRgb | 2 | Capability for lights that have red, green and blue LEDs to control the light's color. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Animation | 4 | Capability for lights that support animations and fast transitions. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
Remarks
This .NET flags enumeration represents the capability constants declared by Light. The brightness, RGB color, and animation flags have values 1, 2, and 4. Support depends on the light hardware.
The legacy Rgb value is zero and is not a usable capability bit. Use ColorRgb instead. Query HasRgbControl to check RGB support.
See the Android capability definitions.