Skip to content

EventKit iOS xcode14.0 beta1

Israel Soto edited this page Jul 18, 2022 · 3 revisions

#EventKit.framework https://github.com/xamarin/xamarin-macios/pull/15542

diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKCalendarItem.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKCalendarItem.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKCalendarItem.h	2022-02-23 07:16:27.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKCalendarItem.h	2022-05-31 15:04:32.000000000 -0400
@@ -68,7 +68,7 @@
 /*!
     @property title
     @abstract The title of this calendar item.
-    @discussion This will be nill for new calendar items until you set it.
+    @discussion This will be an empty string for new calendar items until you set it.
  */
 @property(nonatomic, copy, null_unspecified) NSString *title;
 @property(nonatomic, copy, nullable) NSString *location;
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKEvent.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKEvent.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKEvent.h	2022-02-23 07:16:28.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKEvent.h	2022-05-31 15:02:44.000000000 -0400
@@ -82,8 +82,10 @@
     @abstract   The end date for the event.
     @discussion This will be nil for new events until you set it.
 */
+
 @property(null_unspecified, nonatomic, copy) NSDate *endDate;
 
+
 /*!
     @property   structuredLocation
     @abstract   Allows you to set a structured location (a location with a potential geo-coordinate) on an
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKEventStore.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKEventStore.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKEventStore.h	2022-02-23 10:57:52.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKEventStore.h	2022-05-31 15:03:58.000000000 -0400
@@ -75,7 +75,7 @@
     @abstract   Creates a new event store that only includes items and calendars for a subset of sources.
     @param      sources The sources you want this event store to recognize. This may include delegate sources.
  */
-- (instancetype)initWithSources:(NSArray<EKSource *> *)sources NS_AVAILABLE(10_11, NA);
+- (instancetype)initWithSources:(NSArray<EKSource *> *)sources NS_AVAILABLE(10_11, 16_0);
 
 typedef void(^EKEventStoreRequestAccessCompletionHandler)(BOOL granted, NSError * __nullable error);
 
@@ -105,10 +105,6 @@
 /*!
     @property   delegateSources
     @abstract   Returns an unordered array of sources for all available delegates.
-    @discussion By default, delegates are not included in an event store's sources. To work with delegates,
-                you can create a new event store and pass in the sources, including sources returned from this
-                method, that you're interested in.
-    @see        initWithSources:
  */
 @property (nonatomic, readonly) NSArray<EKSource *> *delegateSources NS_AVAILABLE(10_11, 12_0);
 
@@ -290,8 +286,6 @@
     @method     eventsMatchingPredicate:
     @abstract   Searches for events that match the given predicate.
     @discussion This call executes a search for the events indicated by the predicate passed to it.
-                It only includes events which have been committed (e.g. those saved using 
-                saveEvent:commit:NO are not included until commit: is called.)
  
                 It is synchronous. If you want async behavior, you should either use dispatch_async or
                 NSOperation to run the query someplace other than the main thread, and then funnel the
@@ -307,8 +301,7 @@
     @method     enumerateEventsMatchingPredicate:usingBlock:
     @abstract   Searches for events that match the given predicate.
     @discussion This call executes a search for the events indicated by the predicate passed to it, calling
-                the block specified in the callback parameter for each event. It only includes events which 
-                have been committed (e.g. those saved using saveEvent:commit:NO are not included until commit: is called.)
+                the block specified in the callback parameter for each event.
  
                 This method is synchronous. If you want async behavior, you should either use dispatch_async or
                 NSOperation to run the query someplace other than the main thread.
@@ -381,8 +374,6 @@
     @discussion This method fetches reminders asynchronously and returns a value which can be
                 used in cancelFetchRequest: to cancel the request later if desired. The completion
                 block is called with an array of reminders that match the given predicate (or potentially nil).
-                This only includes reminders which have been committed (e.g. those saved using 
-                saveReminder:commit:NO are not included until commit: is called.)
 */
 - (id)fetchRemindersMatchingPredicate:(NSPredicate *)predicate completion:(void (^)(NSArray<EKReminder *> * __nullable reminders))completion NS_AVAILABLE(10_8, 6_0);
 
@@ -459,8 +450,7 @@
     @discussion You can call this method to pull new data from remote sources.  
                 This only updates the event store's data.  If you want to update your objects after 
                 refreshing the sources, you should call refresh on each of them afterwards.
-                On iOS, this sync only occurs if deemed necessary.  
-                On OS X, this will occur regardless of necessity, but may change in a future release to match the iOS behavior.
+                On iOS and macOS, this sync only occurs if deemed necessary.
                 On WatchOS, initiating sync is not available. Sync will occur automatically with the paired iOS device.
  */
 - (void)refreshSourcesIfNecessary NS_AVAILABLE(10_8, 5_0) __WATCHOS_PROHIBITED;
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKParticipant.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKParticipant.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKParticipant.h	2022-02-23 07:59:59.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKParticipant.h	2022-05-31 14:52:32.000000000 -0400
@@ -92,7 +92,9 @@
  if a match can be found based on email address in the address book
  passed. If we cannot find the participant, nil is returned.
  */
+
 - (nullable ABRecordRef)ABRecordWithAddressBook:(ABAddressBookRef)addressBook API_AVAILABLE(ios(4.0), macCatalyst(14.0)) API_DEPRECATED("Use contactPredicate instead", ios(4.0, 9.0)) CF_RETURNS_NOT_RETAINED;
+
 #endif
 #else
 /*!
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKSource.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKSource.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKSource.h	2022-02-23 07:59:59.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EKSource.h	2022-05-31 14:52:32.000000000 -0400
@@ -33,6 +33,12 @@
  */
 - (NSSet<EKCalendar *> *)calendarsForEntityType:(EKEntityType)entityType NS_AVAILABLE(10_8, 6_0);
 
+/*!
+ @property    isDelegate
+ @abstract    Returns YES if this EKSource represents an account delegated by another user.
+ */
+@property (nonatomic, readonly, assign) BOOL isDelegate NS_AVAILABLE(13_0, 16_0);
+
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EventKitDefines.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EventKitDefines.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EventKitDefines.h	2022-02-23 07:59:59.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/EventKit.framework/Headers/EventKitDefines.h	2022-05-31 14:52:32.000000000 -0400
@@ -26,3 +26,5 @@
 #define DATETIME_COMPONENTS ({DATETIME_COMPONENTS_DO_NOT_USE(); (DATE_COMPONENTS | NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitSecond); })
 
 #endif
+
+
Clone this wiki locally