UNUserNotificationCenter.GetDeliveredNotifications Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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