YMPUserNotificationCenterHandling Class

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

Use this delegate if you implement the UNUserNotificationCenterDelegate protocol with custom logic. You should implement all methods of UNUserNotificationCenterDelegate and call proper methods in YMPUserNotificationCenterHandling.

The implementation of this delegate is called by the YMPYandexMetricaPush.userNotificationCenterDelegate method.

Instance methods

Method descriptions

-userNotificationCenterWillPresentNotification:

- (void)userNotificationCenterWillPresentNotification:(UNNotification *)notification

You should call this method in your implementation of userNotificationCenter:willPresentNotification:withCompletionHandler:.

Parameters:
notification

The instance of UNNotification.

-userNotificationCenterDidReceiveNotificationResponse:

- (void)userNotificationCenterDidReceiveNotificationResponse:(UNNotificationResponse *)response;

You should call this method in your implementation of userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:.

Parameters:
notification

The instance of UNNotificationResponse.

-userNotificationCenterOpenSettingsForNotification:

- (void)userNotificationCenterOpenSettingsForNotification:(nullable UNNotification *)notification API_AVAILABLE(ios(12.0));

You should call this method in your implementation of userNotificationCenter:openSettingsForNotification:.

Parameters:
notification

The instance of UNNotification.