Global Variable

HKQuantityTypeIdentifierActiveEnergyBurned

A quantity sample type that measures the amount of active energy the user has burned.

Declaration

const HKQuantityTypeIdentifier HKQuantityTypeIdentifierActiveEnergyBurned;

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:startDate:endDate: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.

Active energy samples use energy units (described in HKUnit) and measure cumulative values (described in HKStatisticsQuery).

See Also

Activity

HKQuantityTypeIdentifierStepCount

A quantity sample type that measures the number of steps the user has taken.

HKQuantityTypeIdentifierDistanceWalkingRunning

A quantity sample type that measures the distance the user has moved by walking or running.

HKQuantityTypeIdentifierDistanceCycling

A quantity sample type that measures the distance the user has moved by cycling.

HKQuantityTypeIdentifierPushCount

A quantity sample type that measures the number of pushes that the user has performed while using a wheelchair.

HKQuantityTypeIdentifierDistanceWheelchair

A quantity sample type that measures the distance the user has moved using a wheelchair.

HKQuantityTypeIdentifierSwimmingStrokeCount

A quantity sample type that measures the number of strokes performed while swimming.

HKQuantityTypeIdentifierDistanceSwimming

A quantity sample type that measures the distance the user has moved while swimming.

HKQuantityTypeIdentifierDistanceDownhillSnowSports

A quantity sample type that measures the distance the user has traveled while skiing or snowboarding.

HKQuantityTypeIdentifierBasalEnergyBurned

A quantity sample type that measures the resting energy burned by the user.

HKQuantityTypeIdentifierFlightsClimbed

A quantity sample type that measures the number flights of stairs that the user has climbed.

HKQuantityTypeIdentifierNikeFuel

A quantity sample type that measures the number of NikeFuel points the user has earned.

HKQuantityTypeIdentifierAppleExerciseTime

A quantity sample type that measures the amount of time the user spent exercising.

HKCategoryTypeIdentifierAppleStandHour

A category sample type indicating whether the user has stood for at least one minute during the sample.

HKQuantityTypeIdentifierAppleStandTime

A quantity sample type that measures the amount of time the user has spent standing.