Share via


NotificationChannel.EnableLights(Boolean) Method

Definition

Sets whether notifications posted to this channel should display notification lights, on devices that support that feature.

[Android.Runtime.Register("enableLights", "(Z)V", "", ApiSince=26)]
public void EnableLights (bool lights);
[<Android.Runtime.Register("enableLights", "(Z)V", "", ApiSince=26)>]
member this.EnableLights : bool -> unit

Parameters

lights
Boolean
Attributes

Remarks

Sets whether notifications posted to this channel should display notification lights, on devices that support that feature.

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

Java documentation for android.app.NotificationChannel.enableLights(boolean).

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