-
Notifications
You must be signed in to change notification settings - Fork 518
HealthKit macOS 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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.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/MacOSX.platform/Developer/SDKs/MacOSX.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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.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/MacOSX.platform/Developer/SDKs/MacOSX.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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h 2023-06-24 04:19:18
@@ -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
@@ -355,6 +355,14 @@
@discussion After this method is called for a mirrored workout session, it is no longer considered valid.
*/
- (void)workoutSession:(HKWorkoutSession *)workoutSession didDisconnectFromRemoteDeviceWithError:(nullable NSError *)error API_AVAILABLE(ios(17.0), watchos(10.0));
+
+@end
+
+// rdar://110495615 ([Mirrored Workouts] Remove older version of sendDataToRemoteWorkoutSession: after SessionTrackerApp adoption)
+@interface HKWorkoutSession (ToBeRemoved)
+
+- (void)deprecated_sendDataToRemoteWorkoutSession:(NSData *)data
+ completion:(void (^)(BOOL success, NSError * _Nullable error))completion API_AVAILABLE(ios(17.0), watchos(10.0)) NS_SWIFT_NAME(sendData(toRemoteWorkoutSession:completion:));
@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
- xcode16.1 Binding Status
- xcode16.2 Binding Status