Share via


UNUserNotificationCenter.GetDeliveredNotifications Method

Definition

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

[Foundation.Export("getDeliveredNotificationsWithCompletionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void GetDeliveredNotifications(Action<UserNotifications.UNNotification[]> completionHandler);
[<Foundation.Export("getDeliveredNotificationsWithCompletionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetDeliveredNotifications : Action<UserNotifications.UNNotification[]> -> unit
override this.GetDeliveredNotifications : Action<UserNotifications.UNNotification[]> -> unit

Parameters

completionHandler
Action<UNNotification[]>

An action that takes an array of the delivered notifications and returns void.

Attributes

Applies to