Compartir a través de


UNUserNotificationCenter.GetDeliveredNotificationsAsync Método

Definición

Devuelve las notificaciones entregadas que todavía están en el centro de notificaciones y las procesa antes de que se devuelvan.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<UserNotifications.UNNotification[]> GetDeliveredNotificationsAsync ();
abstract member GetDeliveredNotificationsAsync : unit -> System.Threading.Tasks.Task<UserNotifications.UNNotification[]>
override this.GetDeliveredNotificationsAsync : unit -> System.Threading.Tasks.Task<UserNotifications.UNNotification[]>

Devoluciones

Las notificaciones entregadas que todavía están en el centro de notificaciones.

Atributos

Comentarios

El método GetDeliveredNotificationsAsync es adecuado para usarse con Async de C# devolviendo el control al autor de la llamada con una tarea que representa la operación.

Se agregará.

Se aplica a