Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

UNUserNotificationCenterMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class User Notifications MBS MacFrameworks Plugin 19.1 Yes No No Yes, macOS only No
Function: The central object for managing notification-related activities for your app or app extension.
see also

Feedback, Comments & Corrections

Authorization Options

Constant Value Description
AuthorizationOptionAlert 4 The ability to display alerts.
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.
Critical alerts ignore the mute switch and Do Not Disturb; the system plays a critical alert's sound regardless of the device's mute or Do Not Disturb settings. You can specify a custom sound and volume.
Critical alerts require a special entitlement issued by Apple.
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.
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.

Blog Entries

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

UNTimeIntervalNotificationTriggerMBS   -   UnZipFileInfoMBS

MBS Xojo Chart Plugins