Share via


UNUserNotificationCenter.AddNotificationRequestAsync Method

Definition

Asynchronously adds the local notification that is specified by request.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task AddNotificationRequestAsync(UserNotifications.UNNotificationRequest request);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AddNotificationRequestAsync : UserNotifications.UNNotificationRequest -> System.Threading.Tasks.Task
override this.AddNotificationRequestAsync : UserNotifications.UNNotificationRequest -> System.Threading.Tasks.Task

Parameters

request
UNNotificationRequest

The data and settings for the notification.

Returns

A task that represents the asynchronous AddNotificationRequest operation

Attributes

Applies to