UNUserNotificationCenterMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

UNUserNotificationCenterMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The central object for managing notification-related activities for your app or app extension.

see also
https://developer.apple.com/documentation/usernotifications/unusernotificationcenter?language=objc

Authorization Options

Constant Value Description
AuthorizationOptionAlert 4 The ability to display alerts.
AuthorizationOptionAnnouncement 128 The ability for Siri to automatically read out messages over AirPods.
AuthorizationOptionBadge 1 The ability to update the app’s badge.
AuthorizationOptionCarPlay 8 The ability to display notifications in a CarPlay environment.
AuthorizationOptionCriticalAlert 16 The ability to play sounds for critical alerts. more
AuthorizationOptionNone 0 No options.
AuthorizationOptionProvidesAppNotificationSettings 32 An option indicating the system should display a button for in-app notification settings.
AuthorizationOptionProvisional 64 The ability to post noninterrupting notifications provisionally to the Notification Center.
AuthorizationOptionSound 2 The ability to play sounds.

Notification Presentation

Constant Value Description
NotificationPresentationOptionAlert 4 Display the alert using the content provided by the notification.
NotificationPresentationOptionBadge 1 Apply the notification's badge value to the app’s icon. more
NotificationPresentationOptionBanner 16 New for macOS 11.0
NotificationPresentationOptionList 8 New for macOS 11.0
NotificationPresentationOptionNone 0 No alert.
Specify this constant when you want to silence any user interactions for a notification.
NotificationPresentationOptionSound 2 Play the sound associated with the notification.

This class has no sub classes.

Some examples using this class:

Blog Entries

Release notes


The items on this page are in the following plugins: MBS MacFrameworks Plugin.


UNTimeIntervalNotificationTriggerMBS   -   UnZipFileInfoMBS


💬 Ask a question or report a problem