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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Sets a relative offset from an event start date to fire an alarm.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Events | 6.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example |
---|---|---|
EKAlarm | The reference to the alarm. | $Alarm |
TimeOffset | The relative time offset in seconds. | -15*60 |
Returns OK or error.
Add an alaram with relative offset:
Set Variable [ $alarm ; Value: MBS( "Events.NewAlarm" ) ]
If [ not IsEmpty(Test::AlarmSound) ]
Set Variable [ $r ; Value: MBS( "Events.Alarm.SetSound"; $alarm; Test::AlarmSound ) ]
End If
If [ not IsEmpty(Test::AlarmLocationTitle) ]
Set Variable [ $l ; Value: MBS( "Events.StructuredLocation.NewLocationWithTitle"; Test::AlarmLocationTitle ) ]
Set Variable [ $r ; Value: MBS( "Events.StructuredLocation.SetRadius"; $l; Test::AlarmLocationRadius ) ]
Set Variable [ $r ; Value: MBS( "Events.StructuredLocation.SetGeoLocation"; $l; Test::AlarmLocationGeoLat; Test::AlarmLocationGeoLong ) ]
Set Variable [ $r ; Value: MBS( "Events.Alarm.SetStructuredLocation"; $alarm; $l) ]
Set Variable [ $r ; Value: MBS( "Events.Alarm.SetProximity"; $alarm; Test::AlarmProximity ) ]
End If
# e.g. AlarmRelativeOffsetSeconds contains -9 * 60
Set Variable [ $r ; Value: MBS( "Events.Alarm.SetRelativeOffset"; $alarm; Evaluate( Test::AlarmRelativeOffsetSeconds ) ) ]
Set Variable [ $r ; Value: MBS( "Events.Item.AddAlarm"; $item; $alarm ) ]
This function checks for a license.
Created 10th March 2016, last changed 23th March 2020