Type Property

activeEnergyBurned

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

Declaration

static let activeEnergyBurned: HKQuantityTypeIdentifier

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.

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

See Also

Activity

static let stepCount: HKQuantityTypeIdentifier

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

static let distanceWalkingRunning: HKQuantityTypeIdentifier

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

static let distanceCycling: HKQuantityTypeIdentifier

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

static let pushCount: HKQuantityTypeIdentifier

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

static let distanceWheelchair: HKQuantityTypeIdentifier

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

static let swimmingStrokeCount: HKQuantityTypeIdentifier

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

static let distanceSwimming: HKQuantityTypeIdentifier

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

static let distanceDownhillSnowSports: HKQuantityTypeIdentifier

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

static let basalEnergyBurned: HKQuantityTypeIdentifier

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

static let flightsClimbed: HKQuantityTypeIdentifier

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

static let nikeFuel: HKQuantityTypeIdentifier

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

static let appleExerciseTime: HKQuantityTypeIdentifier

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

static let appleStandTime: HKQuantityTypeIdentifier

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