Reputation: 3582
I am familiar with HKStatisticsCollectionQuery
in HealthKit, but I am not clear how to run a query for the total number of minutes of activity in a specified time frame, rather than the total number of some QuantityType
units. Is this covered somewhere in the documentation?
Upvotes: 0
Views: 1368
Reputation: 7343
Perform an HKStatisticsQuery
specifying the HKQuantityTypeIdentifierAppleExerciseTime
quantity type to get the total number of exercise minutes for a given time period.
Upvotes: 1