|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|
A UNNotificationSettingsMBS object contains the current authorization status and notification-related settings for your app. Apps must receive authorization to schedule notifications and to interact with the user. Apps that run in CarPlay must similarly receive authorization to do so. You use this object to determine what notification-related actions your app is allowed to perform. You might then use that information to enable, disable, or adjust your app's notification-related behaviors. Regardless of whether you take action, the system enforces your app's settings by preventing denied interactions from occurring.
You don't create instances of this class directly. Instead, call the getNotificationSettings method of your app’s UNUserNotificationCenterMBS object to get the current settings.
For more information about requesting authorization for user interactions, see UNUserNotificationCenter.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 11 properties
- property alertSetting as Integer
- property alertStyle as Integer
- property authorizationStatus as Integer
- property badgeSetting as Integer
- property criticalAlertSetting as Integer
- property Handle as Integer
- property lockScreenSetting as Integer
- property notificationCenterSetting as Integer
- property providesAppNotificationSettings as Boolean
- property showPreviewsSetting as Integer
- property soundSetting as Integer
- 2 methods
- 2 shared methods
- 13 constants
Alerts are displayed in a modal window that must be dismissed explicitly by the user.
Alerts are displayed as a slide-down banner. Banners appear for a short time and then disappear automatically if the user does nothing.
The app is authorized to schedule or receive notifications.
The app isn't authorized to schedule or receive notifications.
The user hasn't yet made a choice about whether the app is allowed to schedule notifications.
The application is provisionally authorized to post noninterruptive user notifications.
The setting is disabled.
The setting is enabled.
The setting is not available to your app.
Show Preview Settings
The notification's content is always shown, even when the device is locked.
The notification's content is never shown, even when the device is unlocked.
The notification's content is shown only when the device is unlocked.
This class has no sub classes.
Some events for this class:
- UNUserNotificationCenterMBS.getNotificationSettingsCompleted(settings as UNNotificationSettingsMBS, tag as variant)
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
MBS Xojo PDF Plugins