UNUserNotificationCenter.AddNotificationRequest Method

Definition

Adds the local notification that is specified by request, with the specified completionHandler.

[Foundation.Export("addNotificationRequest:withCompletionHandler:")]
public virtual void AddNotificationRequest (UserNotifications.UNNotificationRequest request, Action<Foundation.NSError> completionHandler);
abstract member AddNotificationRequest : UserNotifications.UNNotificationRequest * Action<Foundation.NSError> -> unit
override this.AddNotificationRequest : UserNotifications.UNNotificationRequest * Action<Foundation.NSError> -> unit

Parameters

request
UNNotificationRequest

The data and settings for the notification.

completionHandler
Action<NSError>

An action that returns void and takes an out parameter for storing any errors that occur while trying to add the request.

This parameter can be null.

Attributes

Applies to