Skip to content

HealthKit iOS xcode9 beta2

Vincent Dondain edited this page Jun 21, 2017 · 1 revision

#HealthKit.framework

diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h	2017-05-25 06:21:06.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h	2017-06-14 07:47:38.000000000 -0400
@@ -54,7 +54,7 @@
 
 @end
 
-HK_EXTERN API_AVAILABLE(ios(10.0))
+HK_EXTERN API_AVAILABLE(ios(11.0))
 @interface HKCDADocument : NSObject
 
 /*!
@@ -62,35 +62,35 @@
  @abstract  The CDA document content in XML format as specified in the CDA standard. This may be nil if the
             includeDocumentData option in HKDocumentQuery is specified as NO.
  */
-@property (readonly, copy, nullable) NSData *documentData;
+@property (readonly, copy, nullable) NSData *documentData API_AVAILABLE(ios(10.0));
 
 /*!
  @property      title
  @abstract      The title of the document.
  @discussion    This property is extracted automatically from the document.
  */
-@property (readonly, copy) NSString *title;
+@property (readonly, copy) NSString *title API_AVAILABLE(ios(10.0));
 
 /*!
  @property      patientName
  @abstract      The name of the patient receiving treatment.
  @discussion    This property is extracted automatically from the document.
  */
-@property (readonly, copy) NSString *patientName;
+@property (readonly, copy) NSString *patientName API_AVAILABLE(ios(10.0));
 
 /*!
  @property      authorName
  @abstract      The person responsible for authoring the document.  Usually, this is the treating physician.
  @discussion    This property is extracted automatically from the document.
  */
-@property (readonly, copy) NSString *authorName;
+@property (readonly, copy) NSString *authorName API_AVAILABLE(ios(10.0));
 
 /*!
  @property      custodianName
  @abstract      The organization responsible for the document.  This is usually the treating institution name.
  @discussion    This property is extracted automatically from the document.
  */
-@property (readonly, copy) NSString *custodianName;
+@property (readonly, copy) NSString *custodianName API_AVAILABLE(ios(10.0));
 
 @end
 
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h	2017-05-20 23:54:27.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h	2017-06-14 06:06:53.000000000 -0400
@@ -173,7 +173,7 @@
 - (void)splitTotalEnergy:(HKQuantity *)totalEnergy
                startDate:(NSDate *)startDate
                  endDate:(NSDate *)endDate
-          resultsHandler:(void(^)(HKQuantity * _Nullable restingEnergy, HKQuantity * _Nullable activeEnergy, NSError * _Nullable error))resultsHandler API_AVAILABLE(ios(9.0), watchos(2.0));
+          resultsHandler:(void(^)(HKQuantity * _Nullable restingEnergy, HKQuantity * _Nullable activeEnergy, NSError * _Nullable error))resultsHandler API_DEPRECATED("No longer supported", ios(9.0, 11.0), watchos(2.0, 4.0));
 
 - (nullable NSDate *)dateOfBirthWithError:(NSError **)error API_DEPRECATED_WITH_REPLACEMENT("dateOfBirthComponentsWithError:", ios(8.0, 10.0), watchos(2.0, 3.0));
 
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h	2017-05-20 23:54:27.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h	2017-06-14 06:06:53.000000000 -0400
@@ -378,12 +378,18 @@
 /*!
  @enum          HKVO2MaxTestType
  @abstract      Represents the test used to create a VO2 Max Sample.
+ 
+ @constant      HKVO2MaxTestTypeMaxExercise               A user is exerted to their physical limit to evaluate and
+                                                          measure actual VO2Max.
+ @constant      HKVO2MaxTestTypePredictionSubMaxExercise  A specific test protocol is used to calculate and correlate a
+                                                          predicted VO2Max.
+ @constant      HKVO2MaxTestTypePredictionNonExercise     A non-exercise equation is used based on user metrics to
+                                                          calculate a predicted VO2Max.
  */
 typedef NS_ENUM(NSInteger, HKVO2MaxTestType) {
-    HKVO2MaxTestTypeGradedExercise = 1, // A user is exerted to their physical limit to evaluate and measure actual VO2Max
-    HKVO2MaxTestTypePredictionSubMaxGradedExercise, // A specific test protocol is used to calculate and correlate a predicted VO2Max
-    HKVO2MaxTestTypePredictionNonExerciseEquation, // A non-exercise equation is used based on user metrics to calculate a predicted VO2Max
-    HKVO2MaxTestTypePredictionAppleWatch, // VO2Max prediction computed by Apple Watch
+    HKVO2MaxTestTypeMaxExercise = 1,
+    HKVO2MaxTestTypePredictionSubMaxExercise,
+    HKVO2MaxTestTypePredictionNonExercise,
 } API_AVAILABLE(ios(11.0), watchos(4.0));
 
 /*!
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkout.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkout.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkout.h	2017-05-21 00:17:43.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkout.h	2017-06-14 07:47:38.000000000 -0400
@@ -124,8 +124,8 @@
 /*!
  @property      dateInterval
  @abstract      Date interval representing the time period for which the event is valid.
- @discussion    Most event types only support date intervals with zero duration. Events of type
-                HKWorkoutEventTypeSegment are currently the only events that support a nonzero duration.
+ @discussion    Most event types only support date intervals with zero duration. Events of type HKWorkoutEventTypeLap
+                and HKWorkoutEventTypeSegment are currently the only events that support a nonzero duration.
  */
 @property (readonly, copy) NSDateInterval *dateInterval API_AVAILABLE(ios(11.0), watchos(4.0));
 
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h	2017-05-25 06:21:06.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h	2017-06-14 00:58:39.000000000 -0400
@@ -60,7 +60,7 @@
  @abstract      Method to stop data collection and return the associated HKWorkoutRoute.
  @discussion    Call this method when the route has been completed. The completion handler will return the saved
                 HKWorkoutRoute. If no series data was added, then workoutRoute will be nil and an error returned. The
-                receiver will be considered invalid afterwards and any further calls to it will result in an exception.
+                receiver will be considered invalid afterwards and any further calls to it will result in an error.
  
  @param workout    The HKWorkout object to which the route will be associated. Must be saved to HealthKit
  @param metadata   Optional metadata may be added to associate with the series. Predefined keys are found in
Clone this wiki locally