UNUserNotificationCenter.AddNotificationRequest 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.
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.
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