NotificationChannel.EnableLights(Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定該頻道發布的通知是否應該在支援此功能的裝置上亮起通知燈。
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。