Langue

NotificationManager.NotificationChannels Propriété

Définition

Retourne tous les canaux de notification appartenant au package appelant.

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>

Valeur de propriété

Attributs

Remarques

Retourne tous les canaux de notification appartenant au package appelant. Les délégués de notification approuvés (voir canNotifyAsPackage(String)) peuvent interroger les canaux de notification appartenant aux packages dont ils sont le délégué. Pour ce faire, appelez cette méthode à partir d’un contexte créé pour ce package (voir Context.createPackageContext(String,int)).

Référence Android pour android.app.NotificationManager.getNotificationChannels.

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à