Platforms to show: All Mac Windows Linux Cross-Platform
UNMutableNotificationContentMBS class
Super class: UNNotificationContentMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Create a UNMutableNotificationContent object when you want to specify the payload for a local notification. Specifically, use this object to specify the title and message for an alert, the sound to play, or the value to assign to your app's badge. You might also provide details about how the system handles the notification. For example, you can specify a custom launch image and a thread identifier for visually grouping related notifications.
After creating your content object, assign it to a UNNotificationRequest object, add a trigger condition, and schedule your notification. The trigger condition defines when the notification is delivered to the user. Listing 1 shows the scheduling of a local notification that displays an alert and plays a sound after a delay of five seconds. The strings for the alert's title and body are stored in the app’s Localizable.strings file.
Subclass of the UNNotificationContentMBS class.
- 10 properties
- property badge as Integer
- property body as String
- property categoryIdentifier as String
- 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
- 4 methods
- method addAttachment(attachment as UNNotificationAttachmentMBS)
- method clearBadge
- method Constructor
- method setAttachments(attachments() as UNNotificationAttachmentMBS)
Super class UNNotificationContentMBS
- 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
This class has no sub classes.
Some methods using this class:
- UNNotificationContentMBS.mutableCopy as UNMutableNotificationContentMBS
Some examples using this class:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
UniversalCharacterDetectionMBS - UNNotificationActionMBS