Condividi tramite


UNUserNotificationCenter.GetDeliveredNotificationsAsync Metodo

Definizione

Restituisce le notifiche recapitate ancora nel centro notifiche, elaborandole prima che vengano restituite.

[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[]>

Restituisce

Notifiche recapitate ancora nel centro notifiche.

Attributi

Commenti

Il metodo GetDeliveredNotificationsAsync è adatto per essere usato con C# asincrono restituendo il controllo al chiamante con un'attività che rappresenta l'operazione.

Da aggiungere.

Si applica a