Platforms to show: All Mac Windows Linux Cross-Platform

Back to UNMutableNotificationContentMBS class.

UNMutableNotificationContentMBS.badge 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 number to apply to the app’s icon.

Use this property to specify the number to apply to the app’s icon when the notification arrives. If your app is not authorized to display badge-based notifications, this property is ignored.
Specify the number 0 to remove the current badge, if present. Specify a number greater than 0 to display a badge with that number. Use clearBadge to leave the current badge unchanged.
(Read and Write property)

UNMutableNotificationContentMBS.body as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The localized message to display in the notification alert.

Use this property to specify the body of the notification alert. If your app is not authorized to display alert-based notifications, this property is ignored.
The body text should contain the final text that you want to display, and should not contain any placeholder characters. To include a percent symbol (%) in the message body, use two percent symbols (%%). The system strips all other printf style escape characters from your string prior to display.
(Read and Write property)

UNMutableNotificationContentMBS.categoryIdentifier as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The identifier of the category object that represents the notification's type.

Use notification types to distinguish between the different types of notifications your app supports. You use this support primarily to create actionable notifications—that is, notifications with custom action buttons—and to redirect your notifications through either your notification service app extension or your notification content app extension.
Assign a value to this property that matches the identifier property of one of the UNNotificationCategory objects you previously registered with your app. If you assign a string that does not match one of your registered categories, the system displays your notification without custom actions and without routing it through your app extensions.
(Read and Write property)

UNMutableNotificationContentMBS.sound as UNNotificationSoundMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The sound to play when the notification is delivered.

Use this property to specify the sound that you want played when the notification arrives. If your app is not authorized to play sounds for notifications, this property is ignored.
For information on how to specify sounds for your notifications, see UNNotificationSoundMBS.
(Read and Write property)

UNMutableNotificationContentMBS.subtitle as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The localized subtitle, containing a secondary description of the reason for the alert.

Use this property to specify additional context about the purpose of the notification. Subtitles offer additional context in cases where the title alone is not clear. Subtitles are not displayed in all cases. If your app is not authorized to display alert-based notifications, this property is ignored.
(Read and Write property)

UNMutableNotificationContentMBS.summaryArgument as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The string the notification adds to the category’s summary format string.

(Read and Write property)

UNMutableNotificationContentMBS.summaryArgumentCount 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 number of items the notification adds to the category’s summary format string.

(Read and Write property)

UNMutableNotificationContentMBS.threadIdentifier as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
An identifier that you use to group related notifications together.

You may specify any value for the string, but assign the same thread identifier string to all notifications that you want to group together visually.
(Read and Write property)

UNMutableNotificationContentMBS.title as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The localized title, containing the reason for the alert.

Use this property to specify the title of your notification alert. If your app is not authorized to display alert-based notifications, this property is ignored.
Title strings should be short, usually only a couple of words describing the reason for the notification. In watchOS, the title string is displayed as part of the short look notification interface, which has limited space.
(Read and Write property)

UNMutableNotificationContentMBS.userInfo as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property User Notifications MBS MacFrameworks Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
A dictionary of custom information associated with the notification.

Use this property to associate custom information with the notification. The contents of the dictionary are not seen by the user, but are accessible to your app or to any notification-related app extensions.
The keys in this dictionary must be property-list types—that is, they must be types that can be serialized into the property-list format.
(Read and Write property)

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


The biggest plugin in space...