Platforms to show: All Mac Windows Linux Cross-Platform
UNNotificationContentMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A UNNotificationContent object contains the data associated with a notification. When your app receives a notification, the associated UNNotificationRequestMBS object contains an object of this type with the content that your app received. Use the content object to get the details of the notification, including the type of notification that was delivered, any custom data you stored in the userInfo dictionary before scheduling the notification, and any attachments.
Don't create instances of this class directly. For remote notifications, the contents of this object are derived from the JSON payload that your server sends to the APNS server. For local notifications, create a UNMutableNotificationContentMBS object, and configure the contents of that object instead.
- 12 properties
- property attachmentCount as Integer
- property badge as Integer
- property body as String
- property categoryIdentifier as String
- property Handle as Integer
- property sound as UNNotificationSoundMBS
- property subtitle as String
- property summaryArgument as String
- property summaryArgumentCount as Integer
- property threadIdentifier as String
- property title as String
- property userInfo as Dictionary
- 6 methods
- method attachment(Index as integer) as UNNotificationAttachmentMBS
- method attachments as UNNotificationAttachmentMBS()
- method Constructor Private
- method Constructor(Handle as Integer)
- method copy as UNNotificationContentMBS
- method mutableCopy as UNMutableNotificationContentMBS
- shared method Available as boolean
Sub classes:
Blog Entries
Release notes
- Version 21.1
- Added Constructor for handle to UNNotificationMBS, UNNotificationContentMBS, NSToolbarItemMBS and NSToolbarMBS.
Some methods using this class:
- UNNotificationRequestMBS.Constructor(identifier as string, content as UNNotificationContentMBS, trigger as UNNotificationTriggerMBS)
- UNNotificationRequestMBS.request(identifier as string, content as UNNotificationContentMBS, trigger as UNNotificationTriggerMBS) as UNNotificationRequestMBS
Some properties using for this class:
- UNNotificationRequestMBS.content as UNNotificationContentMBS
Some related classes:
- class NSToolbarItemMBS
- class NSToolbarMBS
- class UNMutableNotificationContentMBS
- class UNNotificationAttachmentMBS
- class UNNotificationMBS
- class UNNotificationRequestMBS
- class UNNotificationSoundMBS
- class UNNotificationTriggerMBS
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
UNNotificationCategoryMBS - UNNotificationMBS
