Lenguaje

NotificationManager.GetActiveNotifications Método

Definición

Recuperar una lista de notificaciones activas: las publicadas por la aplicación que realiza la llamada que aún no han sido descartadas por el usuario o cancel(String,int)ed por la aplicación.

[Android.Runtime.Register("getActiveNotifications", "()[Landroid/service/notification/StatusBarNotification;", "GetGetActiveNotificationsHandler", ApiSince=23)]
public virtual Android.Service.Notification.StatusBarNotification[]? GetActiveNotifications();
[<Android.Runtime.Register("getActiveNotifications", "()[Landroid/service/notification/StatusBarNotification;", "GetGetActiveNotificationsHandler", ApiSince=23)>]
abstract member GetActiveNotifications : unit -> Android.Service.Notification.StatusBarNotification[]
override this.GetActiveNotifications : unit -> Android.Service.Notification.StatusBarNotification[]

Devoluciones

Matriz de StatusBarNotification.

Atributos

Comentarios

Recuperar una lista de notificaciones activas: las publicadas por la aplicación que realiza la llamada que aún no han sido descartadas por el usuario o cancel(String,int)ed por la aplicación. Objeto StatusBarNotification, incluida la etiqueta original y el identificador proporcionados para notify() (a través de getTag() y getId()), así como una copia del objeto Notification original (a través de StatusBarNotification.getNotification()).

Desde Build.VERSION_CODES. Q, también devolverá las notificaciones que ha publicado como delegado de notificaciones de una aplicación a través de NotificationManager.notifyAsPackage(String,String,int,Notification).

Referencia de Android para android.app.NotificationManager.getActiveNotifications.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a