Skip to content

HealthKit watchOS xcode14.0 beta3

TJ Lambert edited this page Aug 3, 2022 · 3 revisions

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

diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h	2022-06-17 13:29:59.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h	2022-06-30 20:58:19.000000000 -0500
@@ -23,12 +23,6 @@
 @interface HKGlassesPrescription : HKVisionPrescription
 
 /*!
- @property      glassesDescription
- @abstract      The description of the type of glasses
- */
-@property (nonatomic, copy, readonly) NSString *glassesDescription;
-
-/*!
  @property      rightEye
  @abstract      The right eye lens specification
  */
@@ -45,7 +39,6 @@
 
  @param         rightEyeSpecification    The right eye specification
  @param         leftEyeSpecification     The left eye specification
- @param         description              The description of the type of glasses
  @param         dateIssued               The date the prescription was issued
  @param         expirationDate           The date the prescription expires
  @param         device                   The device that generated the sample
@@ -53,7 +46,6 @@
  */
 + (instancetype)prescriptionWithRightEyeSpecification:(nullable HKGlassesLensSpecification *)rightEyeSpecification
                                  leftEyeSpecification:(nullable HKGlassesLensSpecification *)leftEyeSpecification
-                                          description:(NSString *)description
                                            dateIssued:(NSDate *)dateIssued
                                        expirationDate:(nullable NSDate *)expirationDate
                                                device:(nullable HKDevice *)device
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h	2022-06-17 13:30:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h	2022-06-30 18:25:59.000000000 -0500
@@ -335,7 +335,7 @@
 HK_EXTERN NSString * const HKMetadataKeyWeatherTemperature API_AVAILABLE(ios(10.0), watchos(3.0), macCatalyst(13.0), macos(13.0));
 
 /*!
- @constant      HKMetadataKeyHumidity
+ @constant      HKMetadataKeyWeatherHumidity
  @abstract      Represents the weather humidity during the sample.
  @discussion    The expected value type is an HKQuantity expressed in percent. This key may be set on an HKWorkout
                 object to represent the overall humidity during the workout.
@@ -688,4 +688,12 @@
  */
 HK_EXTERN NSString * const HKMetadataKeyQuantityClampedToUpperBound API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0));
 
+/*!
+ @constant      HKMetadataKeyGlassesPrescriptionDescription
+ @abstract      Represents the description that may be associated with a HKGlassesPrescription.
+ @discussion    Glasses are often customized for different purposes like reading or distance. Prescriptions received by an eye care professional can provide different ocular functions.
+                Users may also customize their glasses for different scenarios. The value of the metadata is a NSString that describes the purpose of a HKGlassesPrescription.
+  */
+ HK_EXTERN NSString * const HKMetadataKeyGlassesPrescriptionDescription API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0));
+
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h	2022-06-17 14:26:39.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h	2022-06-30 21:07:41.000000000 -0500
@@ -132,6 +132,7 @@
 
 HK_EXTERN HKQuantityTypeIdentifier const HKQuantityTypeIdentifierUVExposure API_AVAILABLE(ios(9.0), watchos(2.0), macCatalyst(13.0), macos(13.0));                          // Scalar(Count), Discrete
 
+HK_EXTERN HKQuantityTypeIdentifier const HKQuantityTypeIdentifierAtrialFibrillationBurden API_AVAILABLE(ios(16.0), watchos(9.0), macCatalyst(16.0), macos(13.0));           // Scalar(Percent, 0.0 - 1.0),  Discrete
 
 
 /*--------------------------------*/
Clone this wiki locally