Bearbeiten

Freigeben über


UNNotificationServiceExtension.DidReceiveNotificationRequest Method

Definition

Method that is called to modify a notification.

[Foundation.Export("didReceiveNotificationRequest:withContentHandler:")]
public virtual void DidReceiveNotificationRequest (UserNotifications.UNNotificationRequest request, Action<UserNotifications.UNNotificationContent> contentHandler);
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