Modifier

Partager via


UNUserNotificationCenterDelegate_Extensions.WillPresentNotification Method

Definition

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

public static void WillPresentNotification (this UserNotifications.IUNUserNotificationCenterDelegate This, UserNotifications.UNUserNotificationCenter center, UserNotifications.UNNotification notification, Action<UserNotifications.UNNotificationPresentationOptions> completionHandler);
static member WillPresentNotification : UserNotifications.IUNUserNotificationCenterDelegate * UserNotifications.UNUserNotificationCenter * UserNotifications.UNNotification * Action<UserNotifications.UNNotificationPresentationOptions> -> unit

Parameters

This
IUNUserNotificationCenterDelegate

The instance on which this extension method operates.

center
UNUserNotificationCenter

The notification center that received the response.

notification
UNNotification

The notification.

completionHandler
Action<UNNotificationPresentationOptions>

An action that takes no arguments and returns no value.

Applies to