Skip to content

HealthKit iOS xcode13.0 beta5

Manuel de la Pena edited this page Aug 16, 2021 · 3 revisions

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

diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h	2021-07-23 13:30:24.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h	2021-08-06 23:44:51.000000000 -0400
@@ -61,12 +61,18 @@
 
 /*!
  @method        initWithQueryDescriptors:anchor:limit:resultsHandler
- @abstract      Returns a query that will retrieve HKSamples and HKDeletedObjects matching the given query descriptors that are newer than the given anchor.
- @discussion    If no updateHandler is set on the query, the query will automatically stop after calling resultsHandler. Otherwise, the query continues to run and call updateHandler as samples matching the query descriptors are created or deleted.
+ @abstract      Returns a query that will retrieve HKSamples and HKDeletedObjects matching the given query descriptors
+                that are newer than the given anchor.
+ @discussion    If no updateHandler is set on the query, the query will automatically stop after calling resultsHandler.
+                Otherwise, the query continues to run and call updateHandler as samples matching the query descriptors
+                are created or deleted.
  
- @param         queryDescriptors   An array of query descriptors that describes the sample types and predicates that you're interested in getting notified for.
- @param         anchor             The anchor which was returned by a previous HKAnchoredObjectQuery result or update handler.  Pass nil when querying for the first time.
- @param         limit              The maximum number of samples and deleted objects to return. Pass HKObjectQueryNoLimit for no limit.
+ @param         queryDescriptors   An array of query descriptors that describes the sample types and predicates that
+                                   you are interested in getting notified for.
+ @param         anchor             The anchor which was returned by a previous HKAnchoredObjectQuery result or update
+                                   handler.  Pass nil when querying for the first time.
+ @param         limit              The maximum number of samples and deleted objects to return. Pass
+                                   HKObjectQueryNoLimit for no limit.
  @param         handler            The block to invoke with results when the query has finished finding.
 */
 - (instancetype)initWithQueryDescriptors:(NSArray<HKQueryDescriptor *> *)queryDescriptors
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleWalkingSteadinessClassification.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleWalkingSteadinessClassification.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleWalkingSteadinessClassification.h	2021-07-22 14:21:57.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleWalkingSteadinessClassification.h	2021-08-09 03:25:03.000000000 -0400
@@ -2,7 +2,7 @@
 //  HKAppleWalkingSteadinessClassification.h
 //  HealthKit
 //
-//  Copyright © 2020 Apple. All rights reserved.
+//  Copyright © 2021 Apple. All rights reserved.
 //
 
 #import <HealthKit/HKDefines.h>
@@ -27,9 +27,9 @@
 /*!
  @abstract Determines the Apple Walking Steadiness classification for the provided Apple Walking Steadiness value.
  @param value Apple Walking Steadiness quantity with expected value between 0% and 100%.
- @param classificationOut a pointer to the classification determined for the provided value
+ @param classificationOut A pointer to the classification determined for the provided value.
  @param errorOut A pointer to an error describing why an unknown classification was returned.
- @return YES if the classification was successful. NO otherwise if the provided value could not be classified.
+ @return YES if the classification was successful. NO otherwise, meaning the provided value could not be classified.
  */
 HK_EXTERN BOOL HKAppleWalkingSteadinessClassificationForQuantity(HKQuantity *value, HKAppleWalkingSteadinessClassification *classificationOut, NSError **errorOut) API_AVAILABLE(ios(15.0), watchos(8.0)) NS_REFINED_FOR_SWIFT;
 
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h	2021-07-22 14:19:00.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h	2021-08-07 05:23:30.000000000 -0400
@@ -595,4 +595,11 @@
 */
 HK_EXTERN NSString * const HKMetadataKeyDateOfEarliestDataUsedForEstimate API_AVAILABLE(ios(15.0), watchos(8.0));
 
+/*!
+ @constant      HKMetadataKeyAlgorithmVersion
+ @abstract      The version of the algorithm used to generate the sample.
+ @discussion    The key for an NSNumber containing an NSInteger indicating the version of the algorithm used to generate the sample.
+ */
+HK_EXTERN NSString * const HKMetadataKeyAlgorithmVersion API_AVAILABLE(ios(15.0), watchos(8.0));
+
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h	2021-07-22 14:21:57.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h	2021-08-09 03:25:03.000000000 -0400
@@ -34,7 +34,8 @@
                 once you have processed data from this notification. Otherwise the system will continue
                 to notify you of this data.
  
- @param         queryDescriptors   An array of query descriptors that describes the sample types and predicates that you're interested in getting notified for.
+ @param         queryDescriptors   An array of query descriptors that describes the sample types and predicates for
+                                   which you are interested in getting notified.
  */
 - (instancetype)initWithQueryDescriptors:(NSArray<HKQueryDescriptor *> *)queryDescriptors
                            updateHandler:(void(^)(HKObserverQuery *query, NSSet<HKSampleType *> * _Nullable sampleTypesAdded, HKObserverQueryCompletionHandler completionHandler, NSError * _Nullable error))updateHandler API_AVAILABLE(ios(15.0), watchos(8.0));
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryDescriptor.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryDescriptor.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryDescriptor.h	2021-07-22 14:21:58.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryDescriptor.h	2021-08-09 03:25:03.000000000 -0400
@@ -2,7 +2,7 @@
 //  HKQueryDescriptor.h
 //  HealthKit
 //
-//  Copyright © 2020 Apple. All rights reserved.
+//  Copyright © 2021 Apple. All rights reserved.
 //
 
 #import <HealthKit/HKDefines.h>
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h	2021-07-23 13:32:08.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h	2021-08-06 23:46:43.000000000 -0400
@@ -50,11 +50,15 @@
 
 /*!
  @method        initWithQueryDescriptors:limit:resultsHandler:
- @abstract      Returns a query that will retrieve HKSamples matching the given queryDescriptors.
+ @abstract      Returns a query that will retrieve HKSamples matching any of the given queryDescriptors.
  
- @param         queryDescriptors          An array of query descriptors that describes the sample types and predicates used for querying.
- @param         limit                     The maximum number of samples to return. Pass HKObjectQueryNoLimit for no limit.
- @param         resultsHandler            The block to invoke with results when the query has finished executing. This block is invoked once with results, an array of HKSamples matching the queryDescriptors passed in, or nil if an error occurred.
+ @param         queryDescriptors          An array of query descriptors that describes the sample types and predicates
+                                          used for querying.
+ @param         limit                     The maximum number of samples to return. Pass HKObjectQueryNoLimit
+                                          for no limit.
+ @param         resultsHandler            The block to invoke with results when the query has finished executing. This
+                                          block is invoked once with results, an array of HKSamples matching the
+                                          queryDescriptors passed in, or nil if an error occurred.
  */
 - (instancetype)initWithQueryDescriptors:(NSArray<HKQueryDescriptor *> *)queryDescriptors
                                    limit:(NSInteger)limit
@@ -62,12 +66,17 @@
 
 /*!
  @method        initWithQueryDescriptors:limit:sortDescriptors:resultsHandler:
- @abstract      Returns a query that will retrieve HKSamples matching the given queryDescriptors.
+ @abstract      Returns a query that will retrieve HKSamples matching any of the given queryDescriptors.
  
- @param         queryDescriptors          An array of query descriptors that describes the sample types and predicates used for querying.
- @param         limit                     The maximum number of samples to return. Pass HKObjectQueryNoLimit for no limit.
+ @param         queryDescriptors          An array of query descriptors that describes the sample types and predicates
+                                          used for querying.
+ @param         limit                     The maximum number of samples to return. Pass HKObjectQueryNoLimit
+                                          for no limit.
  @param         sortDescriptors           The sort descriptors to use to order the resulting samples.
- @param         resultsHandler            The block to invoke with results when the query has finished executing. This block is invoked once with results, an array of HKSamples matching the queryDescriptors passed in, or nil if an error occurred. The HKSamples in the array are sorted by the specified sortDescriptors.
+ @param         resultsHandler            The block to invoke with results when the query has finished executing. This
+                                          block is invoked once with results, an array of HKSamples matching the
+                                          queryDescriptors passed in, or nil if an error occurred. The HKSamples in the
+                                          array are sorted by the specified sortDescriptors.
  */
 - (instancetype)initWithQueryDescriptors:(NSArray<HKQueryDescriptor *> *)queryDescriptors
                                    limit:(NSInteger)limit
Clone this wiki locally