activeEnergyBurned
A quantity sample type that measures the amount of active energy the user has burned.
Declaration
static let activeEnergyBurned: HKQuantityTypeIdentifierMentioned in
Discussion
Active energy is the energy that the user has burned due to physical activity and exercise. These samples should not include the resting energy burned during the sample’s duration. Use the health store’s splitTotalEnergy(_:start:end:resultsHandler:) method to split a workout’s total energy burned into the active and resting portions, and then save each portion in its own sample. The system automatically records active energy samples on Apple Watch.
Active energy samples use energy units (described in HKUnit) and measure cumulative values (described in HKQuantityAggregationStyle). Sample data may be condensed and/or coalesced by HealthKit. For more information, see Accessing condensed workout samples.