Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Sets a calendar based trigger.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
UNNotification | 7.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
UNNotificationRef | The reference number of the notification. | $Notification | |
Year | The year to use. Can be empty. |
Optional | |
Month | The month to use. Can be empty. |
Optional | |
Day | The day to use. Can be empty. |
Optional | |
Hour | The hour to use. Can be empty. |
Optional | |
Minute | The minute to use. Can be empty. |
Optional | |
Second | The second to use. Can be empty. |
Optional | |
Repeat | Whether to repeat. Can be 1 to enable or 0 to disable. Default is 0. |
0 | Optional |
Returns OK or error.
Repeat daily 8am:
MBS( "UNNotification.SetCalendarTrigger"; $NotificationRef; ""; ""; ""; 8; ""; ""; 1 )
Schedule to show up 10:30 am every day:
# Create a new notification
Set Variable [$notification; Value:MBS("UNNotification.New")]
Set Variable [$r; Value:MBS( "UNNotification.SetTitle"; $Notification; "Hello World")]
# Set calendar trigger:
Set Variable [$r; Value:MBS( "UNNotification.SetCalendarTrigger"; $Notification; ""; ""; ""; 10; 30; ""; 1 )]
# and schedule
Set Variable [$r; Value:MBS("UNNotification.Schedule"; $notification; "test")]
Created 15th April 2017, last changed 17th April 2017
UNNotification.SetCalendarDateTrigger - UNNotification.SetCategoryIdentifier
Feedback: Report problem or ask question.