CalendarService Data Types
CalendarService defines and uses several data types.
An object representing a calendar.
|id||String||A stringified number unique to each calendar. Generated by the native device at the time of calendar creation.||"6544287"|
|title||String||The name of the calendar.||"Awanasa's Calendar"|
|allowsContentModifications||Boolean||Indicates whether the calendar is editable (|
|hexColor||String||Specifies the accent color shown for this calendar’s events on the device UI. Valid entries must contain a number sign (#) followed by a six-character hex color value.||"#009EDB"|
|type||String||Metadata about the calendar’s type.||"exchange"|
|isPrimary||Boolean||Indicates whether the selected calendar is the default calendar for the device.|
An object representing an event.
|String||A stringified number unique to each event. Generated by the native device at the time of event creation.||"7824456"|
|Boolean||Indicates whether the event is all-day. Defaults to false.|
|Number||Denotes the starting date and time for a given display range.||1667692800|
|Number||Denotes the ending date and time for a given display range.||1668211200|
|Indicates a participant’s availability during an event. Defaults to “Busy”.||"Busy"|
|This parameter is read-only; any value specified by the user is ignored by the plugin.||"Tentative"|
|String||Matches the id value from the associated calendar.||"6544287"|
|String||The name of the event.||"Chan's Birthday Party"|
|String||The location of the event.||"415 Mission St, San Francisco, CA, 94105"|
|String||Miscellaneous notes associated with the event.||"Don't forget to bring the cake!"|
|Indicates when a reminder is generated before the start of an event.|
|Lists the attendees for an event.|
|Specifies any recurrence rules for an event.|
An object representing when a notification is generated before an event.
|relativeOffsetSeconds||Number||The amount of time, in seconds, before an event when a reminder notification is generated.||1800|
An object representing an invitee to a particular calendar event.
|name||String||The name of the participant.||"Chan Ming Lewis"|
|String||The email address of the participant.||"email@example.com"|
|role||Indicates the level of necessity of an invitee’s attendance.||"Optional"|
|status||Indicates whether an invitee will attend an event.||"Attending"|
An object representing the recurrence cadence of a calendar event.
|Indicates the frequency of the event’s recurrence.||"Weekly"|
|Number||Indicates the interval at which the event’s recurrence takes place. Defaults to 1. For example, if the value of the ||3|
|`RecurrenceDayOfWeek||Indicates which days of the week the events occurs on.|
|Indicates which days of the month the event occurs on. Acceptable values include positive integers from 1 through 31 (inclusive).||5|
|Indicates which months of the year the event occurs on. Acceptable values include positive integers from 1 through 12 (inclusive).||6|
|Indicates which weeks of the year the event occurs on. Acceptable values include positive integers from 1 through 53 (inclusive).||17|
|Indicates which days of the year the event occurs on. Acceptable values include positive integers from 1 through 366 (inclusive).||200|
|Specifies a comma-separated list of values that correspond to the nth occurrence within the set of recurrence instance specified by the rule. The example provided shows a possible |
|Indicates when the event recurrence ends.|
Recurrence rule properties are defined in accordance with the standardized iCalendar data format. For more information of the specifics of the iCalendar format, see Internet Calendaring and Scheduling Core Object Specification.
An object for specifying the weekly recurrence cadence of a calendar event.
|dayOfTheWeek||Indicates the day of the week.||"Monday"|
|weekNumber||Indicates the week number within the calendar year. Acceptable values include positive integers from 1 through 53 (inclusive).||25|
An object for specifying the end of a recurrence cadence of a calendar event.
|endDateSecondsUTC||Number||Denotes the ending date and time for a given recurring event.||1668211200|
|occurrenceCount||Number||Denotes the number of times an event recurs.||12|
An object for specifying which instances of a recurring event are affected by an update to or deletion of one instance of an event.
|span||Indicates whether an update to or deletion of a recurring event applies to the specified event instance only, or the specified event instance and all future recurrences.||"ThisAndFollowingEvents"|
An object representing an error that occurred when accessing CalendarService features.
|code||A value representing the reason for a calendar error. See |
|message||String||A string value describing the reason for the failure. This value is suitable for use in user error messages. The message is provided in English and isn’t localized.|