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
Returns the authorization status for the given entity type.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Events | 6.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Type | Which entity type you like to check: Event or Reminder. | "Event" |
Returns status or error.
Query authorization:
Set Variable [$r; Value:MBS("Events.AuthorizationStatusForEntityType"; "Reminder")]
If [MBS("IsError")]
Show Custom Dialog ["We have a problem"; MBS("Text.RemovePrefix"; $r; "[MBS] ")]
Else If [$r = "NotDetermined"]
Set Variable [$r; Value:MBS( "Events.RequestAccessToEntityType"; "Reminder" )]
If [$r = "Wait"]
#dialog is showing.
Else If [$r = "OK"]
Show Custom Dialog ["Success"; "We are authorized and ready to go."]
Else
Show Custom Dialog ["We have a problem"; $r]
End If
Else If [$r = "Restricted"]
Show Custom Dialog ["Success"; "We are authorized for a restricted access and ready to go."]
Else If [$r = "Denied"]
Show Custom Dialog ["Problem"; "We are denied for calendar access. Please go to system preferences and enable us."]
Else If [$r = "Authorized"]
Show Custom Dialog ["Success"; "We are authorized and ready to go."]
Else
Show Custom Dialog ["We have a problem"; $r]
End If
This function checks for a license.
Created 10th March 2016, last changed 13th March 2016
Events.Alarm.Type - Events.Calendar.AllowsContentModifications