Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
UNNotification.AddFile
Adds an attachment to the notification.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
UNNotification | 10.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "UNNotification.AddFile"; UNNotificationRef; Path { ; Identifier } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
UNNotificationRef | The reference number of the notification. | $Notification | |
Path | The native file path for the file. | ||
Identifier | The identifier to distinguis multiple attachments. Default is "attachment" |
Optional |
Result
Returns OK or error.
Description
Adds an attachment to the notification.Path can be a picture file, an audio file or a movie file.
As the system takes the file, you may want to make a copy in a temp folder first.
Examples
Add a picture file:
Set Variable [ $result ; Value: MBS("UNNotification.AddFile"; $UserNotification; "/Users/cs/Pictures/Test.jpg"; "image") ]
See also
- UNNotification.Action
- UNNotification.AddImage
- UNNotification.Badge
- UNNotification.Deliver
- UNNotification.Region
- UNNotification.Release
- UNNotification.Schedule
- UNNotification.SetTitle
- UNNotification.SubTitle
- UNNotification.Title
Release notes
- Version 10.4
- Added UNNotification.AddFile and UNNotification.AddImage functions.
Blog Entries
This function is free to use.
Created 11st August 2020, last changed 20th August 2020