UNUserNotificationCenterDelegate.WillPresentNotification 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.
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