The interface for handling notification-related interactions in your app or app extension.


The UNUserNotificationCenterDelegate protocol defines methods for responding to actionable notifications and receiving notifications while your app is in the foreground. You assign your delegate object to the delegate property of the shared UNUserNotificationCenter object. The user notification center object calls methods of your delegate at appropriate times to deliver information.

For information about the user notification center object, see UNUserNotificationCenter.


Handling the Selection of Custom Actions

func userNotificationCenter(UNUserNotificationCenter, didReceive: UNNotificationResponse, withCompletionHandler: () -> Void)

Called to let your app know which action was selected by the user for a given notification.


struct UNNotificationPresentationOptions

Constants indicating how to present a notification in a foreground app.


Inherits From

See Also

First Steps

class UNUserNotificationCenter

The central object for managing notification-related activities for your app or app extension.

class UNNotificationSettings

The object for managing notification-related settings and the authorization status of your app