Skip to content

HealthKit watchOS xcode15.0 b3

Haritha Mohan edited this page Sep 5, 2023 · 5 revisions

#HealthKit.framework https://github.com/xamarin/xamarin-macios/pull/18927

diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h	2023-06-14 23:55:34
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h	2023-06-28 01:45:31
@@ -96,7 +96,7 @@
   */
 - (void)requestPerObjectReadAuthorizationForType:(HKObjectType *)objectType
                                        predicate:(nullable NSPredicate *)predicate
-                                      completion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
+                                      completion:(void (^)(BOOL success, NSError * _Nullable error))completion NS_SWIFT_ASYNC_THROWS_ON_FALSE(1) API_AVAILABLE(ios(16.0), macCatalyst(16.0), macos(13.0));
 
 /*!
  @method        getRequestStatusForAuthorizationToShareTypes:readTypes:completion:
diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h	2023-06-09 20:52:52
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h	2023-06-28 00:56:56
@@ -66,7 +66,7 @@
  @method        requiresPerObjectAuthorization
  @abstract      Returns YES if the authorization for the object type needs to be requested on per object basis.
  */
-- (BOOL)requiresPerObjectAuthorization;
+- (BOOL)requiresPerObjectAuthorization API_AVAILABLE(ios(16.0), macCatalyst(16.0), macos(13.0));
 
 @end
 
diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h	2023-06-14 23:55:33
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h	2023-06-28 01:45:30
@@ -252,7 +252,7 @@
                 This method will fail if called for a session that is ended.
                 The completion handler will be executed on an arbitrary background queue.
  */
-- (void)startMirroringToCompanionDeviceWithCompletion:(void (^)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(watchos(10.0)) API_UNAVAILABLE(ios) API_UNAVAILABLE(macos, macCatalyst, tvos);
+- (void)startMirroringToCompanionDeviceWithCompletion:(void (^)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(watchos(10.0)) API_UNAVAILABLE(ios) API_UNAVAILABLE(macos, macCatalyst, tvos) NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
 
 /*!
  @method        stopMirroringToCompanionDeviceWithCompletion:
@@ -262,7 +262,7 @@
                 When a workout session is ended, mirroring is automatically stopped.
                 The completion handler will be executed on an arbitrary background queue.
  */
-- (void)stopMirroringToCompanionDeviceWithCompletion:(void (^)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(watchos(10.0)) API_UNAVAILABLE(ios) API_UNAVAILABLE(macos, macCatalyst, tvos);
+- (void)stopMirroringToCompanionDeviceWithCompletion:(void (^)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(watchos(10.0)) API_UNAVAILABLE(ios) API_UNAVAILABLE(macos, macCatalyst, tvos) NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
 
 /*!
  @method        sendDataToRemoteWorkoutSession:completion:
@@ -276,7 +276,7 @@
                 The completion handler will be executed on an arbitrary background queue.
  */
 - (void)sendDataToRemoteWorkoutSession:(NSData *)data
-                            completion:(void (^)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(ios(17.0), watchos(10.0));
+                            completion:(void (^)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(ios(17.0), watchos(10.0)) API_UNAVAILABLE(macos, macCatalyst, tvos) NS_SWIFT_NAME(sendToRemoteWorkoutSession(data:completion:)) NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
 
 @end
 
Clone this wiki locally