NotificationListenerService.GetActiveNotifications Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
GetActiveNotifications() |
Demandez la liste des notifications en attente (c’est-à-dire celles visibles par l’utilisateur actuel). |
GetActiveNotifications(String[]) |
Demandez une ou plusieurs notifications par clé. |
GetActiveNotifications()
Demandez la liste des notifications en attente (c’est-à-dire celles visibles par l’utilisateur actuel).
[Android.Runtime.Register("getActiveNotifications", "()[Landroid/service/notification/StatusBarNotification;", "GetGetActiveNotificationsHandler")]
public virtual Android.Service.Notification.StatusBarNotification[]? GetActiveNotifications ();
[<Android.Runtime.Register("getActiveNotifications", "()[Landroid/service/notification/StatusBarNotification;", "GetGetActiveNotificationsHandler")>]
abstract member GetActiveNotifications : unit -> Android.Service.Notification.StatusBarNotification[]
override this.GetActiveNotifications : unit -> Android.Service.Notification.StatusBarNotification[]
Retours
Tableau de notifications actives, triées dans l’ordre naturel.
- Attributs
Remarques
Demandez la liste des notifications en attente (c’est-à-dire celles visibles par l’utilisateur actuel). Utile lorsque vous ne savez pas ce qui a déjà été publié.
Le service doit attendre l’événement #onListenerConnected()
avant d’effectuer cette opération.
Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.
S’applique à
GetActiveNotifications(String[])
Demandez une ou plusieurs notifications par clé.
[Android.Runtime.Register("getActiveNotifications", "([Ljava/lang/String;)[Landroid/service/notification/StatusBarNotification;", "GetGetActiveNotifications_arrayLjava_lang_String_Handler")]
public virtual Android.Service.Notification.StatusBarNotification[]? GetActiveNotifications (string[]? keys);
[<Android.Runtime.Register("getActiveNotifications", "([Ljava/lang/String;)[Landroid/service/notification/StatusBarNotification;", "GetGetActiveNotifications_arrayLjava_lang_String_Handler")>]
abstract member GetActiveNotifications : string[] -> Android.Service.Notification.StatusBarNotification[]
override this.GetActiveNotifications : string[] -> Android.Service.Notification.StatusBarNotification[]
Paramètres
- keys
- String[]
clés des notifications à demander
Retours
Tableau de notifications correspondant aux clés demandées, dans le même ordre que la liste des clés.
- Attributs
Remarques
Demandez une ou plusieurs notifications par clé. Utile si vous avez suivi les notifications, mais que vous ne souhaitez pas conserver les bits, et que vous devez maintenant revenir en arrière et extraire plus de données de ces notifications.
Le service doit attendre l’événement #onListenerConnected()
avant d’effectuer cette opération.
Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.