Platforms to show: All Mac Windows Linux Cross-Platform
Back to UNNotificationContentMBS class.
UNNotificationContentMBS.attachmentCount as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
UNNotificationContentMBS.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 |
When the number in this property is 0, the system does not display a badge. When the number is greater than 0, the system displays the badge with the specified number. When the value in this property is not set, the system leaves the current badge unchanged.
(Read only property)
UNNotificationContentMBS.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 body text contains the final text that you want to display. If your app is not authorized to display alert-based notifications, this property is ignored.
If you specified two percent symbols (%%) in the message body, the system replaces it with a single percent symbol (%). The system strips all other printf style escape characters from your string prior to display.
(Read only property)
UNNotificationContentMBS.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 |
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.
For remote notifications, this property is set to the value of the category key in the aps dictionary.
(Read only property)
UNNotificationContentMBS.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 |
(Read and Write property)
UNNotificationContentMBS.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 |
Notifications can play a default sound or a custom sound. For information on how to specify custom sounds for your notifications, see UNNotificationSoundMBS.
(Read only property)
UNNotificationContentMBS.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 |
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 only property)
UNNotificationContentMBS.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 |
(Read only property)
UNNotificationContentMBS.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 |
(Read only property)
UNNotificationContentMBS.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 |
For remote notifications, this property is set to the value of the thread-id key in the aps dictionary.
(Read only property)
UNNotificationContentMBS.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 |
When a title is present, the system attempts to display a 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 only property)
UNNotificationContentMBS.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 |
For remote notifications, this property contains the entire notification payload. For local notifications, you configure the property directly before scheduling the notification.
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 only property)
The items on this page are in the following plugins: MBS MacFrameworks Plugin.