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:

let delegate = YMPYandexMetricaPush.userNotificationCenterDelegate()
UNUserNotificationCenter.current().delegate = delegate

Properties

presentationOptions

Parameters for displaying push notifications. They are passed to the handler userNotificationCenter(_:willPresent:withCompletionHandler:).