Type Method

currentNotificationCenter

Returns the shared user notification center object for your app or app extension.

Declaration

+ (UNUserNotificationCenter *)currentNotificationCenter;

Return Value

The notification center object to use.

Discussion

Always use this method to retrieve the shared notification center object for your app. Do not try to create instances of the UNUserNotificationCenter class directly.