NotificationChannel.EnableLights(Boolean) 方法

定义

设置发布到此通道的通知是否应在支持该功能的设备上显示通知灯。

[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

参数

lights
Boolean
属性

注解

设置发布到此通道的通知是否应在支持该功能的设备上显示通知灯。

仅在将通道提交到 NotificationManager#createNotificationChannel(NotificationChannel)之前可修改。

适用于 . 的 android.app.NotificationChannel.enableLights(boolean)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于