Contents

current()

Returns your app’s notification center.

Declaration

class func current() -> UNUserNotificationCenter

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.

See Also

Managing the notification center