語言

NotificationManager.NotificationChannels 屬性

定義

回傳所有屬於呼叫套件的通知通道。

public virtual System.Collections.Generic.IList<Android.App.NotificationChannel>? NotificationChannels { [Android.Runtime.Register("getNotificationChannels", "()Ljava/util/List;", "GetGetNotificationChannelsHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getNotificationChannels", "()Ljava/util/List;", "GetGetNotificationChannelsHandler", ApiSince=26)>]
member this.NotificationChannels : System.Collections.Generic.IList<Android.App.NotificationChannel>

屬性值

屬性

備註

回傳所有屬於呼叫套件的通知通道。 核准的通知代理(參見 canNotifyAsPackage(String)))可以查詢屬於其代理的套件通知通道。 為此,請從該套件建立的上下文中呼叫此方法(參見 Context.createPackageContext(String,int))。

Android 參考資料。android.app.NotificationManager.getNotificationChannels

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

適用於