LightState.Builder.Build 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.
Create a LightState object used to control lights on the device.
[Android.Runtime.Register("build", "()Landroid/hardware/lights/LightState;", "", ApiSince=31)]
public Android.Hardware.Lights.LightState Build();
[<Android.Runtime.Register("build", "()Landroid/hardware/lights/LightState;", "", ApiSince=31)>]
member this.Build : unit -> Android.Hardware.Lights.LightState
Returns
A light state with the configured color or player ID. The last call to SetColor(Color) or SetPlayerId(Int32) selects which value is used; the other value is zero.
- Attributes
Remarks
Create a LightState object used to control lights on the device.
The generated LightState should be used in LightsRequest.Builder#addLight(Light, LightState).
Java documentation for android.hardware.lights.LightState.Builder.build().
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.