-
Notifications
You must be signed in to change notification settings - Fork 507
CloudKit watchOS xcode16.0 b1
Rolf Bjarne Kvinge edited this page Jul 10, 2024
·
3 revisions
#CloudKit.framework https://github.com/xamarin/xamarin-macios/pull/20861
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKDefines.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKDefines.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKDefines.h 2024-04-19 08:12:46
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKDefines.h 2024-05-30 05:58:09
@@ -53,4 +53,13 @@
#define CK_UNAVAILABLE(msg) __attribute__((unavailable(msg)))
#endif
+#ifndef CK_NEWLY_UNAVAILABLE
+ #if (!defined(CK_BUILDING_CK) || !CK_BUILDING_CK)
+ #define CK_NEWLY_UNAVAILABLE(msg) __attribute__((unavailable(msg)))
+ #else
+ #define CK_NEWLY_UNAVAILABLE(msg) CK_EXTERN
+ #endif
+#endif
+
+
NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKFetchNotificationChangesOperation.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKFetchNotificationChangesOperation.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKFetchNotificationChangesOperation.h 2024-04-19 08:12:46
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKFetchNotificationChangesOperation.h 2024-05-30 05:58:07
@@ -5,56 +5,12 @@
// Copyright (c) 2014 Apple Inc. All rights reserved.
//
-#import <CloudKit/CKDatabaseOperation.h>
+#import <CloudKit/CKOperation.h>
-@class CKNotification, CKServerChangeToken;
-
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
-/*! @class CKFetchNotificationChangesOperation
- *
- * @abstract An operation that fetches all notification changes.
- *
- * @discussion If a change token from a previous @c CKFetchNotificationChangesOperation is passed in, only the notifications that have changed since that token will be fetched.
- * If this is your first fetch, pass nil for the change token.
- * Change tokens are opaque tokens and clients should not infer any behavior based on their content.
- */
-API_DEPRECATED("Instead of iterating notifications to enumerate changed record zones, use CKDatabaseSubscription, CKFetchDatabaseChangesOperation, and CKFetchRecordZoneChangesOperation", macos(10.10, 10.13), ios(8.0, 11.0), tvos(9.0, 11.0), watchos(3.0, 4.0))
+CK_NEWLY_UNAVAILABLE("Fetching notification changes is no longer supported. Consider using CKDatabaseSubscription, CKFetchDatabaseChangesOperation, and CKFetchRecordZoneChangesOperation")
@interface CKFetchNotificationChangesOperation : CKOperation
-
-- (instancetype)init NS_DESIGNATED_INITIALIZER;
-- (instancetype)initWithPreviousServerChangeToken:(nullable CKServerChangeToken *)previousServerChangeToken;
-
-@property (nullable, copy, nonatomic) CKServerChangeToken *previousServerChangeToken;
-
-@property (assign, nonatomic) NSUInteger resultsLimit;
-
-/*! @abstract If true, then the server wasn't able to return all the changes in this response.
- *
- * @discussion Will be set before @c fetchNotificationChangesCompletionBlock is called.
- * Another @c CKFetchNotificationChangesOperation operation should be run with the updated @c serverChangeToken token from this operation.
- */
-@property (readonly, assign, nonatomic) BOOL moreComing;
-
-/*! @abstract Called once for each updated notification fetch from the server
- *
- * @discussion Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.
- * This block may share mutable state with other blocks assigned to this operation, but any such mutable state
- * should not be concurrently used outside of blocks assigned to this operation.
- */
-@property (nullable, copy, nonatomic) void (^notificationChangedBlock)(CKNotification *notification);
-
-/*! @abstract This block is called when the operation completes.
- *
- * @discussion Clients are responsible for saving the change token at the end of the operation and passing it in to the next call to @c CKFetchNotificationChangesOperation.
- * Note that a fetch can fail partway. If that happens, an updated change token may be returned in the completion block so that already fetched notifications don't need to be re-downloaded on a subsequent operation.
- * If the server returns a @c CKErrorChangeTokenExpired error, the @c previousServerChangeToken value was too old and the client should toss its local cache and re-fetch notification changes starting with a nil @c previousServerChangeToken.
- * Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.
- * This block may share mutable state with other blocks assigned to this operation, but any such mutable state
- * should not be concurrently used outside of blocks assigned to this operation.
- */
-@property (nullable, copy, nonatomic) void (^fetchNotificationChangesCompletionBlock)(CKServerChangeToken * _Nullable serverChangeToken, NSError * _Nullable operationError);
-
@end
NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKMarkNotificationsReadOperation.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKMarkNotificationsReadOperation.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKMarkNotificationsReadOperation.h 2024-04-19 08:12:46
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKMarkNotificationsReadOperation.h 2024-05-30 05:58:07
@@ -5,31 +5,12 @@
// Copyright (c) 2014 Apple Inc. All rights reserved.
//
-#import <Foundation/Foundation.h>
-
#import <CloudKit/CKOperation.h>
-@class CKNotificationID;
-
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
-API_DEPRECATED("Instead of iterating notifications, consider using CKDatabaseSubscription, CKFetchDatabaseChangesOperation, and CKFetchRecordZoneChangesOperation as appropriate", macos(10.10, 10.13), ios(8.0, 11.0), tvos(9.0, 11.0), watchos(3.0, 4.0))
+CK_NEWLY_UNAVAILABLE("Marking notifications read is no longer supported. Consider using CKDatabaseSubscription, CKFetchDatabaseChangesOperation, and CKFetchRecordZoneChangesOperation")
@interface CKMarkNotificationsReadOperation : CKOperation
-
-- (instancetype)init NS_DESIGNATED_INITIALIZER;
-- (instancetype)initWithNotificationIDsToMarkRead:(NSArray<CKNotificationID *> *)notificationIDs;
-
-@property (nullable, copy, nonatomic) NSArray<CKNotificationID *> *notificationIDs;
-
-/*! @abstract This block is called when the operation completes.
- *
- * @discussion The @code -[NSOperation completionBlock] @endcode will also be called if both are set.
- * Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.
- * This block may share mutable state with other blocks assigned to this operation, but any such mutable state
- * should not be concurrently used outside of blocks assigned to this operation.
- */
-@property (nullable, copy, nonatomic) void (^markNotificationsReadCompletionBlock)(NSArray<CKNotificationID *> * _Nullable notificationIDsMarkedRead, NSError * _Nullable operationError);
-
@end
NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKModifyBadgeOperation.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKModifyBadgeOperation.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKModifyBadgeOperation.h 2024-04-19 08:12:45
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKModifyBadgeOperation.h 2024-05-30 05:58:06
@@ -9,23 +9,8 @@
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
-API_DEPRECATED("No longer supported, will cease working at some point in the future", macos(10.10, 10.13), ios(8.0, 11.0), tvos(9.0, 11.0), watchos(3.0, 4.0))
+CK_NEWLY_UNAVAILABLE("Modifying badge counts is no longer supported")
@interface CKModifyBadgeOperation : CKOperation
-
-- (instancetype)init NS_DESIGNATED_INITIALIZER;
-- (instancetype)initWithBadgeValue:(NSUInteger)badgeValue;
-
-@property (assign, nonatomic) NSUInteger badgeValue;
-
-/*! @abstract This block is called when the operation completes.
- *
- * @discussion The @code -[NSOperation completionBlock] @endcode will also be called if both are set.
- * Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.
- * This block may share mutable state with other blocks assigned to this operation, but any such mutable state
- * should not be concurrently used outside of blocks assigned to this operation.
- */
-@property (nullable, copy, nonatomic) void (^modifyBadgeCompletionBlock)(NSError * _Nullable operationError);
-
@end
NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKShareParticipant.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKShareParticipant.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKShareParticipant.h 2024-04-19 08:12:45
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKShareParticipant.h 2024-05-30 05:58:08
@@ -69,6 +69,9 @@
/*! The default permission for a new participant is @c CKShareParticipantPermissionReadOnly. */
@property (assign) CKShareParticipantPermission permission;
+/*! A unique identifier for this participant. */
+@property (readonly, copy) NSString *participantID API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0), watchos(3.0)) NS_REFINED_FOR_SWIFT;
+
@end
NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKUserIdentity.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKUserIdentity.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKUserIdentity.h 2024-04-19 08:12:45
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKUserIdentity.h 2024-05-30 05:58:08
@@ -21,26 +21,14 @@
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
+@property (nullable, readonly, copy) CKRecordID *userRecordID;
+
/*! This is the @c lookupInfo you passed in to @c CKDiscoverUserIdentitiesOperation or @c CKFetchShareParticipantsOperation */
@property (nullable, readonly, copy) CKUserIdentityLookupInfo *lookupInfo;
-
@property (nullable, readonly, copy) NSPersonNameComponents *nameComponents;
-@property (nullable, readonly, copy) CKRecordID *userRecordID;
-
-/*! @abstract Link to the Contacts database.
- *
- * @discussion Identities discovered via @c CKDiscoverAllUserIdentitiesOperation correspond to entries in the local Contacts database. These identities will have @c contactIdentifiers filled out, which your app may use to get additional information about the contacts that were discovered. Multiple @c contactIdentifiers may exist for a single discovered user, as multiple contacts may contain the same email addresses or phone numbers.
- *
- * @return individual, non-unified contacts.
- *
- * @discussion To transform these identifiers into an array of unified contact identifiers, pass a @c CNContact.predicateForContacts(withIdentifiers:) predicate into @c CNContactStore.unifiedContacts(matching:keysToFetch:)
- *
- * @see Contacts.framework and CNContact.identifier
- */
-@property (readonly, copy) NSArray<NSString *> *contactIdentifiers API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0)) API_UNAVAILABLE(tvos);
-
-
@property (readonly, assign) BOOL hasiCloudAccount;
+
+@property (readonly, copy) NSArray<NSString *> *contactIdentifiers API_DEPRECATED("No longer supported. Please see Sharing CloudKit Data with Other iCloud Users.", macos(10.13, 15.0), ios(11.0, 18.0), watchos(4.0, 11.0));
@end
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status