UNNotificationServiceExtension.DidReceiveNotificationRequest 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.
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.