LightState.Builder.SetColor(Color) Method
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.
Set the desired color and intensity of the LightState Builder, for a light type of RBG color or single monochrome color.
[Android.Runtime.Register("setColor", "(I)Landroid/hardware/lights/LightState$Builder;", "", ApiSince=31)]
public Android.Hardware.Lights.LightState.Builder SetColor(Android.Graphics.Color color);
[<Android.Runtime.Register("setColor", "(I)Landroid/hardware/lights/LightState$Builder;", "", ApiSince=31)>]
member this.SetColor : Android.Graphics.Color -> Android.Hardware.Lights.LightState.Builder
Parameters
- color
- Color
the desired color and intensity in ARGB format.
Returns
The LightState.Builder object contains the light color and intensity. This value cannot be null.
- Attributes
Remarks
Set the desired color and intensity of the LightState Builder, for a light type of RBG color or single monochrome color.
Android reference for android.hardware.lights.LightState.Builder.setColor.
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.