Share via


UNUserNotificationCenter.GetDeliveredNotificationsAsync Method

Definition

Returns the delivered notifications that are still in the notification center, processing them before they are returned.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<UserNotifications.UNNotification[]> GetDeliveredNotificationsAsync();
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetDeliveredNotificationsAsync : unit -> System.Threading.Tasks.Task<UserNotifications.UNNotification[]>
override this.GetDeliveredNotificationsAsync : unit -> System.Threading.Tasks.Task<UserNotifications.UNNotification[]>

Returns

The delivered notifications that are still in the notification center.

Attributes

Remarks

The GetDeliveredNotificationsAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to