Share via


UNNotificationServiceExtension.DidReceiveNotificationRequest Method

Definition

Method that is called to modify a notification.

[Foundation.Export("didReceiveNotificationRequest:withContentHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void DidReceiveNotificationRequest(UserNotifications.UNNotificationRequest request, Action<UserNotifications.UNNotificationContent> contentHandler);
[<Foundation.Export("didReceiveNotificationRequest:withContentHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member DidReceiveNotificationRequest : UserNotifications.UNNotificationRequest * Action<UserNotifications.UNNotificationContent> -> unit
override this.DidReceiveNotificationRequest : UserNotifications.UNNotificationRequest * Action<UserNotifications.UNNotificationContent> -> unit

Parameters

request
UNNotificationRequest

The request that was received.

contentHandler
Action<UNNotificationContent>

An action to perform on the modified payload.

Attributes

Remarks

Developers overload this method to modify a notification.

Applies to