current
TypeScriptstatic current(): UNUserNotificationCenterSwift declarationclass func current() -> UNUserNotificationCenterclass · iOS 10.0+ · SDK 27.1
class UNUserNotificationCenterstatic current(): UNUserNotificationCenterSwift declarationclass func current() -> UNUserNotificationCenteradd(request: UNNotificationRequest, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc add(_ request: UNNotificationRequest) async throwsgetDeliveredNotifications(completionHandler: ((arg0: Array<UNNotification>) => void)): voidSwift declarationfunc deliveredNotifications() async -> [UNNotification]getNotificationCategories(completionHandler: ((arg0: Array<UNNotificationCategory>) => void)): voidSwift declarationfunc notificationCategories() async -> Set<UNNotificationCategory>getNotificationSettings(completionHandler: ((arg0: UNNotificationSettings) => void)): voidSwift declarationfunc notificationSettings() async -> UNNotificationSettingsgetPendingNotificationRequests(completionHandler: ((arg0: Array<UNNotificationRequest>) => void)): voidSwift declarationfunc pendingNotificationRequests() async -> [UNNotificationRequest]removeAllDeliveredNotifications(): voidSwift declarationfunc removeAllDeliveredNotifications()removeAllPendingNotificationRequests(): voidSwift declarationfunc removeAllPendingNotificationRequests()removeDeliveredNotifications(identifiers: Array<string>): voidSwift declarationfunc removeDeliveredNotifications(withIdentifiers identifiers: [String])removePendingNotificationRequests(identifiers: Array<string>): voidSwift declarationfunc removePendingNotificationRequests(withIdentifiers identifiers: [String])requestAuthorization(options: UNAuthorizationOptions, completionHandler: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc requestAuthorization(options: UNAuthorizationOptions = []) async throws -> BoolsetBadgeCount(newBadgeCount: number, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): voidSwift declarationfunc setBadgeCount(_ newBadgeCount: Int) async throwssetNotificationCategories(categories: Array<UNNotificationCategory>): voidSwift declarationfunc setNotificationCategories(_ categories: Set<UNNotificationCategory>)get delegate(): (SDKHandle) | nullSwift declarationweak var delegate: (any UNUserNotificationCenterDelegate)? { get set }set delegate(value: (Implements<UNUserNotificationCenterDelegate> | SDKHandle) | null)Swift declarationweak var delegate: (any UNUserNotificationCenterDelegate)? { get set }get supportsContentExtensions(): booleanSwift declarationvar supportsContentExtensions: Bool { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UNUserNotificationCenter.init()
inherited init: clang: 'init' is unavailable