Sdílet prostřednictvím


LightState.Color Property

Definition

Returns the color and intensity associated with this LightState.

public int Color { [Android.Runtime.Register("getColor", "()I", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getColor", "()I", "", ApiSince=31)>]
member this.Color : int

Property Value

the color and intensity in ARGB format. The A channel is ignored. return 0 when calling LightsManager.getLightState with android.hardware.lights.Light#LIGHT_TYPE_PLAYER_ID.

Attributes

Remarks

Returns the color and intensity associated with this LightState.

Java documentation for android.hardware.lights.LightState.getColor().

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.

Applies to