Share via


UNUserNotificationCenter.GetDeliveredNotifications 方法

定义

返回仍在通知中心内的已传递通知,并在返回之前对其进行处理。

[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

参数

completionHandler
Action<UNNotification[]>

一个操作,该操作采用传递的通知数组并返回 void

属性

适用于