AMPUserNotificationCenterDelegate protocol

A delegate for handling foreground push notifications on iOS 10 and higher.

To handle foreground push notifications, add this code to the application: didFinishLaunchingWithOptions: method:

[UNUserNotificationCenter currentNotificationCenter].delegate = [AMPAppMetricaPush userNotificationCenterDelegate];

Properties

presentationOptions

Parameters for displaying push notifications.

nextDelegate

A delegate to which calls of this protocol will be proxied.

Property descriptions

presentationOptions

(nonatomic, assign) [UNNotificationPresentationOptions](https://developer.apple.com/documentation/usernotifications/unnotificationpresentationoptions) presentationOptions

Parameters for displaying push notifications. They are passed to the handler userNotificationCenter: willPresentNotification: withCompletionHandler:.

The delegate invokes the handler if the nextDelegate property is not set or if the object is in nextDelegate does not respond to the selector.

nextDelegate

(nonatomic, weak, nullable) id<UNUserNotificationCenterDelegate> nextDelegate;

A delegate to which calls of this protocol will be proxied.