NotificationManager.NotificationChannels Property

Definition

Returns all notification channels belonging to the calling package.

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>

Property Value

Attributes

Remarks

Returns all notification channels belonging to the calling package.

Approved notification delegates (see #canNotifyAsPackage(String)) can query notification channels belonging to packages they are the delegate for. To do so, call this method from a context created for that package (see Context#createPackageContext(String, int)).

Java documentation for android.app.NotificationManager.getNotificationChannels().

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