Share via


UNUserNotificationCenter.GetPendingNotificationRequests Method

Definition

Returns an array that contains the pending notification requests, processing them before returning them.

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

Parameters

completionHandler
Action<UNNotificationRequest[]>

An action that takes an array of the pending notification requests and returns void.

Attributes

Applies to