Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Events.Calendar.Subscribed
Whether this is a subscribed calendar.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Events | 6.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
EKCalendar | The identifier or name of the calendar. | $calendar |
Result
Returns 0, 1 or error.
Description
Whether this is a subscribed calendar.Returns 1 if this calendar is a subscribed calendar.
Examples
Checks status:
While(
[
names = "";
// query list of Calendar IDs
list = MBS( "Events.Calendars"; "Event" );
count = ValueCount(list);
index = 1
] ;
index ≤ count ;
[
id = GetValue(list; index);
// query name for each ID
name = MBS( "Events.Calendar.GetTitle"; id);
Subscribed = MBS( "Events.Calendar.Subscribed"; id);
names = names & name & " -> " & if(Subscribed; "Subscribed"; "local") & ¶;
index = index + 1
] ;
// return all the names
names )
Example result:
Family -> local
US Holidays -> Subscribed
Work -> local
See also
This function checks for a license.
Created 10th March 2016, last changed 14th June 2022
Events.Calendar.SetTitle - Events.Calendar.allowedEntityTypes