UserNotificationCenterHandling protocol
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 its corresponding methods in UserNotificationCenterHandling
.
This delegate is implemented by the userNotificationCenterDelegate method of the AppMetricaPush
class.
Instance methods
You should call this method in your implementation of userNotificationCenter(_:willPresent:withCompletionHandler:). |
|
You should call this method in your implementation of userNotificationCenter(_:didReceive:withCompletionHandler:). |
|
You should call this method in your implementation of userNotificationCenter(_:openSettingsFor:). |
Method descriptions
userNotificationCenterWillPresent(_:)
func userNotificationCenterWillPresent(_ notification: UNNotification?)
You should call this method in your implementation of userNotificationCenter (_: willPresent:withCompletionHandler:).
Parameters:
|
The instance of UNNotification. |
userNotificationCenterDidReceive(_:)
func userNotificationCenterDidReceive(_ response: UNNotificationResponse?)
You should call this method in your implementation of userNotificationCenter (_: didReceive:withCompletionHandler:).
Parameters:
|
The instance of UNNotificationResponse. |
userNotificationCenterOpenSettings(_:)
func userNotificationCenterOpenSettings(for notification: UNNotification?)
You should call this method in your implementation of userNotificationCenter (_: openSettingsFor:).
Parameters:
|
The instance of UNNotification. |