Platforms to show: All Mac Windows Linux Cross-Platform
Back to UNMutableNotificationContentMBS class.
UNMutableNotificationContentMBS.addAttachment(attachment as UNNotificationAttachmentMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
UNMutableNotificationContentMBS.clearBadge
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
UNMutableNotificationContentMBS.Constructor
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
UNMutableNotificationContentMBS.setAttachments(attachments() as UNNotificationAttachmentMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Use this property to include images or movies, or to include playable audio files, with the contents of an alert. The system displays the attachments alongside the title and body of your alert. You can also customize the presentation of attachments using a notification content app extension.
All attachments must reside locally on the current device before they can be added. For local notifications, modify this property before scheduling the notification. For remote notifications, use a notification service app extension to locate and download the specified files and modify the notification content before it is delivered.
For more information on how to specify attachments, see UNNotificationAttachmentMBS.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.