語言

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

boolean

屬性

備註

設定該頻道發布的通知是否應該在支援此功能的裝置上亮起通知燈。 只有在頻道提交給 NotificationManager.createNotificationChannel(NotificationChannel)之前,才能修改。

Android 參考資料。android.app.NotificationChannel.enableLights

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於