HomeiOS Developmentios - Distinction between calendarItemIdentifier and eventIdentifer

ios – Distinction between calendarItemIdentifier and eventIdentifer


I am unsure whether or not I must be utilizing calendarItemIdentifier or eventIdentifier. Listed below are the docs:

EKCalendarItem: The EKCalendarItem is a an summary superclass for calendar occasions and reminders. This class supplies frequent properties and strategies for accessing properties of calendar objects comparable to the flexibility to set the calendar, title, and placement, in addition to assist for attaching notes, displaying attendees, setting a number of alarms, and specifying recurrence guidelines.

calendarItemIdentifier: The calendar merchandise’s distinctive identifier. This property is about when the calendar merchandise is created and can be utilized as a neighborhood identifier. Use calendarItem(withIdentifier:) to search for the merchandise by this worth. A full sync with the calendar will lose this identifier. It is best to have a plan for coping with a calendar whose identifier is not fetch-able by caching its different properties.

EKEvent: A category that represents an occasion in a calendar.

EKEventIdentifier: A novel identifier for the occasion. You should utilize this identifier to search for an occasion with the EKEventStore methodology occasion(withIdentifier:). If the calendar of an occasion adjustments, its identifier most certainly adjustments as nicely.

From my testing, cases of an occasion could have the identical ID because the father or mother occasion. Is there any benefit to utilizing one over the opposite? How do they differ?

I observed that eventIdentifier has the format ${UUID1}:${UUID2} what does this consult with?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments