Upravit

Sdílet prostřednictvím


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.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void GetDeliveredNotifications (Action<UserNotifications.UNNotification[]> completionHandler);
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