A quantity sample type that measures the amount of active energy the user has burned.
SDKs
- iOS 8.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
Framework
- Health
Kit
Declaration
static let activeEnergyBurned: HKQuantity Type Identifier
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 split
method to split a workout’s total energy burned into the active and resting portions, and then save each portion in its own sample.
Active energy samples use energy units (described in HKUnit
) and measure cumulative values (described in HKStatistics
).