Düzenle

Aracılığıyla paylaş


UNUserNotificationCenterDelegate.WillPresentNotification Method

Definition

Called to deliver a notification to an application that is running in the foreground.

[Foundation.Export("userNotificationCenter:willPresentNotification:withCompletionHandler:")]
public virtual void WillPresentNotification (UserNotifications.UNUserNotificationCenter center, UserNotifications.UNNotification notification, Action<UserNotifications.UNNotificationPresentationOptions> completionHandler);
abstract member WillPresentNotification : UserNotifications.UNUserNotificationCenter * UserNotifications.UNNotification * Action<UserNotifications.UNNotificationPresentationOptions> -> unit
override this.WillPresentNotification : UserNotifications.UNUserNotificationCenter * UserNotifications.UNNotification * Action<UserNotifications.UNNotificationPresentationOptions> -> unit

Parameters

center
UNUserNotificationCenter

The notification center that received the response.

notification
UNNotification
completionHandler
Action<UNNotificationPresentationOptions>

An action that takes no arguments and returns no value.

Attributes

Applies to