public interface UNUserNotificationCenterDelegate
| Modifier and Type | Interface and Description |
|---|---|
static interface |
UNUserNotificationCenterDelegate.Block_userNotificationCenterDidReceiveNotificationResponseWithCompletionHandler |
static interface |
UNUserNotificationCenterDelegate.Block_userNotificationCenterWillPresentNotificationWithCompletionHandler |
| Modifier and Type | Method and Description |
|---|---|
default void |
userNotificationCenterDidReceiveNotificationResponseWithCompletionHandler(UNUserNotificationCenter center,
UNNotificationResponse response,
UNUserNotificationCenterDelegate.Block_userNotificationCenterDidReceiveNotificationResponseWithCompletionHandler completionHandler)
The method will be called on the delegate when the user responded to the notification by opening the application, dismissing the notification or choosing a UNNotificationAction.
|
default void |
userNotificationCenterOpenSettingsForNotification(UNUserNotificationCenter center,
UNNotification notification)
The method will be called on the delegate when the application is launched in response to the user's request to view in-app notification settings.
|
default void |
userNotificationCenterWillPresentNotificationWithCompletionHandler(UNUserNotificationCenter center,
UNNotification notification,
UNUserNotificationCenterDelegate.Block_userNotificationCenterWillPresentNotificationWithCompletionHandler completionHandler)
The method will be called on the delegate only if the application is in the foreground.
|
default void userNotificationCenterDidReceiveNotificationResponseWithCompletionHandler(UNUserNotificationCenter center, UNNotificationResponse response, UNUserNotificationCenterDelegate.Block_userNotificationCenterDidReceiveNotificationResponseWithCompletionHandler completionHandler)
default void userNotificationCenterWillPresentNotificationWithCompletionHandler(UNUserNotificationCenter center, UNNotification notification, UNUserNotificationCenterDelegate.Block_userNotificationCenterWillPresentNotificationWithCompletionHandler completionHandler)
default void userNotificationCenterOpenSettingsForNotification(UNUserNotificationCenter center, UNNotification notification)