---
title: current()
framework: usernotifications
role: symbol
role_heading: Type Method
path: usernotifications/unusernotificationcenter/current()
---

# current()

Returns your app’s notification center.

## Declaration

```swift
class func current() -> UNUserNotificationCenter
```

## Return Value

Return Value The notification center object to use.

## Discussion

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

- [getNotificationSettings(completionHandler:)](usernotifications/unusernotificationcenter/getnotificationsettings(completionhandler:).md)
- [setBadgeCount(_:withCompletionHandler:)](usernotifications/unusernotificationcenter/setbadgecount(_:withcompletionhandler:).md)
