Platforms to show: All Mac Windows Linux Cross-Platform

Back to UNNotificationSettingsMBS class.

UNNotificationSettingsMBS.alertSetting as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The authorization status for displaying alerts.

When the value of this property is NotificationSettingEnabled, the app is authorized to display alerts. Authorization does not guarantee that alerts always appear on the user’s screen. When a device is unlocked, the alertStyle property determines the presentation style for the alert, which can include not displaying the alert at all.
The system tries to display an alert when the title, subtitle, or body properties of a UNNotificationContentMBS object contain values, or when the aps dictionary in a remote notification contains the alert key.
(Read only property)

UNNotificationSettingsMBS.alertStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The type of alert that the app may display when the device is unlocked.

When alerts are authorized, this property specifies the presentation style for alerts when the device is unlocked. The user may choose to display alerts as automatically disappearing banners or as modal windows that require explicit dismissal. The user may also choose not to display alerts at all.
(Read only property)

UNNotificationSettingsMBS.authorizationStatus as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The app's ability to schedule and receive local and remote notifications.

When the value of this property is AuthorizationStatusAuthorized, your app is allowed to schedule and receive local and remote notifications. When authorized, use the alertSetting, badgeSetting, and soundSetting properties to specify which types of interactions are allowed. When the value of the property is AuthorizationStatusDenied, the system doesn't deliver notifications to your app, and the system ignores any attempts to schedule local notifications.
The value of this property is AuthorizationStatusNotDetermined if your app has never requested authorization using the requestAuthorization method.
(Read only property)

UNNotificationSettingsMBS.badgeSetting as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The authorization status for badging your app’s icon.

When the value of this property is NotificationSettingEnabled, the app is authorized to badge its icon. The system tries to badge your app's icon when the badge property of a UNNotificationContentMBS object contain a value, or when the aps dictionary in a remote notification contains the badge key.
(Read only property)

UNNotificationSettingsMBS.criticalAlertSetting as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The authorization status to play sounds for critical alerts.

When NotificationSettingEnabled, this property authorizes the app to play critical sounds that ignore Do Not Disturb and the device’s mute switch.
For local notifications, the system attempts to play a critical sound when the sound property of the UNNotificationContentMBS object contains an object returned by the defaultCriticalSound property, the criticalSoundNamed method, or a related method.
For remote notifications, the system attempts to play a critical sound when the notification’s payload contains a sound directory that contains the critical key.
Critical alerts require a special entitlement issued by Apple.
(Read only property)

UNNotificationSettingsMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The internal object reference.

(Read and Write property)

UNNotificationSettingsMBS.lockScreenSetting as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The setting that indicates whether your app’s notifications appear onscreen when the device is locked.

Even if the user disables lock screen notifications, your notifications may still appear onscreen when the device is unlocked.
(Read only property)

UNNotificationSettingsMBS.notificationCenterSetting as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The setting that indicates whether your app’s notifications are displayed in Notification Center.

The default value of this property is NotificationSettingEnabled.
(Read only property)

UNNotificationSettingsMBS.providesAppNotificationSettings as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
A Boolean value indicating the system displays a button for in-app notification settings.

(Read only property)

UNNotificationSettingsMBS.showPreviewsSetting as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The setting that indicates whether the app shows a preview of the notification's content.

(Read only property)

UNNotificationSettingsMBS.soundSetting as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The authorization status for playing sounds for incoming notifications.

When the value of this property is NotificationSettingEnabled, the app is authorized to play sounds. The system tries to play a sound when the sound property of the UNNotificationContentMBS object contains a value, or when the aps dictionary in a remote notification contains the sound key.
(Read only property)

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


The biggest plugin in space...