@@ -81,6 +81,30 @@ - (nullable HKObjectType *)getReadPermFromText:(nonnull NSString*)key {
81
81
return [HKObjectType quantityTypeForIdentifier: HKQuantityTypeIdentifierAppleStandTime];
82
82
} else if ([@" AppleExerciseTime" isEqualToString: key] && systemVersion >= 9.3 ) {
83
83
return [HKObjectType quantityTypeForIdentifier: HKQuantityTypeIdentifierAppleExerciseTime];
84
+ } else if ([@" RunningPower" isEqualToString: key]) {
85
+ if (@available (iOS 16.0 , *)) {
86
+ return [HKObjectType quantityTypeForIdentifier: HKQuantityTypeIdentifierRunningPower];
87
+ } else {
88
+ return nil ;
89
+ }
90
+ } else if ([@" RunningStrideLength" isEqualToString: key]) {
91
+ if (@available (iOS 16.0 , *)) {
92
+ return [HKObjectType quantityTypeForIdentifier: HKQuantityTypeIdentifierRunningStrideLength];
93
+ } else {
94
+ return nil ;
95
+ }
96
+ } else if ([@" RunningVerticalOscillation" isEqualToString: key]) {
97
+ if (@available (iOS 16.0 , *)) {
98
+ return [HKObjectType quantityTypeForIdentifier: HKQuantityTypeIdentifierRunningVerticalOscillation];
99
+ } else {
100
+ return nil ;
101
+ }
102
+ } else if ([@" RunningGroundContactTime" isEqualToString: key]) {
103
+ if (@available (iOS 16.0 , *)) {
104
+ return [HKObjectType quantityTypeForIdentifier: HKQuantityTypeIdentifierRunningGroundContactTime];
105
+ } else {
106
+ return nil ;
107
+ }
84
108
}
85
109
86
110
// Nutrition Identifiers
@@ -282,6 +306,30 @@ - (nullable HKObjectType *)getWritePermFromText:(nonnull NSString*) key {
282
306
return [HKObjectType quantityTypeForIdentifier: HKQuantityTypeIdentifierActiveEnergyBurned];
283
307
} else if ([@" FlightsClimbed" isEqualToString: key]) {
284
308
return [HKObjectType quantityTypeForIdentifier: HKQuantityTypeIdentifierFlightsClimbed];
309
+ } else if ([@" RunningPower" isEqualToString: key]) {
310
+ if (@available (iOS 16.0 , *)) {
311
+ return [HKObjectType quantityTypeForIdentifier: HKQuantityTypeIdentifierRunningPower];
312
+ } else {
313
+ return nil ;
314
+ }
315
+ } else if ([@" RunningStrideLength" isEqualToString: key]) {
316
+ if (@available (iOS 16.0 , *)) {
317
+ return [HKObjectType quantityTypeForIdentifier: HKQuantityTypeIdentifierRunningStrideLength];
318
+ } else {
319
+ return nil ;
320
+ }
321
+ } else if ([@" RunningVerticalOscillation" isEqualToString: key]) {
322
+ if (@available (iOS 16.0 , *)) {
323
+ return [HKObjectType quantityTypeForIdentifier: HKQuantityTypeIdentifierRunningVerticalOscillation];
324
+ } else {
325
+ return nil ;
326
+ }
327
+ } else if ([@" RunningGroundContactTime" isEqualToString: key]) {
328
+ if (@available (iOS 16.0 , *)) {
329
+ return [HKObjectType quantityTypeForIdentifier: HKQuantityTypeIdentifierRunningGroundContactTime];
330
+ } else {
331
+ return nil ;
332
+ }
285
333
}
286
334
287
335
// Nutrition Identifiers
0 commit comments