YMPUserNotificationCenterDelegate 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 = [YMPYandexMetricaPush userNotificationCenterDelegate];
Copied to clipboard

Properties

presentationOptions

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

nextDelegate

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

presentationOptions

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

nextDelegate

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

Property descriptions

presentationOptions

(nonatomic, assign) 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.