NotificationChannel.LightColor Property

Definition

Returns the notification light color for notifications posted to this channel. -or- Sets the notification light color for notifications posted to this channel, if lights are #enableLights(boolean) enabled on this channel and the device supports that feature.

public int LightColor { [Android.Runtime.Register("getLightColor", "()I", "", ApiSince=26)] get; [Android.Runtime.Register("setLightColor", "(I)V", "", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getLightColor", "()I", "", ApiSince=26)>]
[<set: Android.Runtime.Register("setLightColor", "(I)V", "", ApiSince=26)>]
member this.LightColor : int with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the notification light color for notifications posted to this channel. Irrelevant unless #shouldShowLights().

Java documentation for android.app.NotificationChannel.getLightColor().

Property setter documentation:

Sets the notification light color for notifications posted to this channel, if lights are #enableLights(boolean) enabled on this channel and the device supports that feature.

Only modifiable before the channel is submitted to NotificationManager#createNotificationChannel(NotificationChannel).

Java documentation for android.app.NotificationChannel.setLightColor(int).

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