UNUserNotificationCenter.GetDeliveredNotificationsAsync 方法

定义

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

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<UserNotifications.UNNotification[]> GetDeliveredNotificationsAsync ();
abstract member GetDeliveredNotificationsAsync : unit -> System.Threading.Tasks.Task<UserNotifications.UNNotification[]>
override this.GetDeliveredNotificationsAsync : unit -> System.Threading.Tasks.Task<UserNotifications.UNNotification[]>

返回

仍在通知中心内的已传递通知。

属性

注解

GetDeliveredNotificationsAsync 方法适合用于 C# 异步,方法是将控件返回到具有表示操作的任务的调用方。

内容待定。

适用于