Type Alias

HKQuantityTypeIdentifier

Used to define the identifiers that create quantity type objects.

Declaration

typedef NSString *HKQuantityTypeIdentifier;

Discussion

To create an HKQuantityType instance, pass an HKQuantityTypeIdentifier value to the quantityTypeForIdentifier: method.

For the complete list of quantity type identifiers, see Quantity Types.

Topics

Body Measurements

HKQuantityTypeIdentifierHeight

A quantity sample type that measures the user’s height.

HKQuantityTypeIdentifierBodyMass

A quantity sample type that measures the user’s weight.

HKQuantityTypeIdentifierBodyMassIndex

A quantity sample type that measures the user’s body mass index.

HKQuantityTypeIdentifierLeanBodyMass

A quantity sample type that measures the user’s lean body mass.

HKQuantityTypeIdentifierBodyFatPercentage

A quantity sample type that measures the user’s body fat percentage.

HKQuantityTypeIdentifierWaistCircumference

A quantity sample type that measures the user’s waist circumference.

Vital Signs

HKQuantityTypeIdentifierHeartRate

A quantity sample type that measures the user’s heart rate.

HKQuantityTypeIdentifierRestingHeartRate

A quantity sample type that measures the user’s resting heart rate.

HKQuantityTypeIdentifierWalkingHeartRateAverage

A quantity sample type that measures the user’s heart rate while walking.

HKQuantityTypeIdentifierHeartRateVariabilitySDNN

A quantity sample type that measures the standard deviation of heartbeat intervals.

HKQuantityTypeIdentifierOxygenSaturation

A quantity sample type that measures the user’s oxygen saturation.

HKQuantityTypeIdentifierBodyTemperature

A quantity sample type that measures the user’s body temperature.

HKQuantityTypeIdentifierBloodPressureDiastolic

A quantity sample type that measures the user’s diastolic blood pressure.

HKQuantityTypeIdentifierBloodPressureSystolic

A quantity sample type that measures the user’s systolic blood pressure.

HKQuantityTypeIdentifierRespiratoryRate

A quantity sample type that measures the user’s respiratory rate.

HKQuantityTypeIdentifierVO2Max

A quantity sample that measures the maximal oxygen consumption during incremental exercise.

Lab and Test Results

HKQuantityTypeIdentifierBloodAlcoholContent

A quantity sample type that measures the user’s blood alcohol content.

HKQuantityTypeIdentifierBloodGlucose

A quantity sample type that measures the user’s blood glucose level.

HKQuantityTypeIdentifierElectrodermalActivity

A quantity sample type that measures electrodermal activity.

HKQuantityTypeIdentifierForcedExpiratoryVolume1

A quantity sample type that measures the amount of air that can be forcibly exhaled from the lungs during the first second of a forced exhalation.

HKQuantityTypeIdentifierForcedVitalCapacity

A quantity sample type that measures the amount of air that can be forcibly exhaled from the lungs after taking the deepest breath possible.

HKQuantityTypeIdentifierInhalerUsage

A quantity sample type that measures the number of puffs the user takes from their inhaler.

HKQuantityTypeIdentifierInsulinDelivery

A quantity sample that measures the amount of insulin delivered.

HKQuantityTypeIdentifierNumberOfTimesFallen

A quantity sample type that measures the number of times the user has fallen.

HKQuantityTypeIdentifierPeakExpiratoryFlowRate

A quantity sample type that measures the user’s maximum flow rate generated during a forceful exhalation.

HKQuantityTypeIdentifierPeripheralPerfusionIndex

A quantity sample type that measures the user’s peripheral perfusion index.

Nutrition

HKQuantityTypeIdentifierDietaryBiotin

A quantity sample type that measures the amount of biotin (vitamin B7) consumed.

HKQuantityTypeIdentifierDietaryCaffeine

A quantity sample type that measures the amount of caffeine consumed.

HKQuantityTypeIdentifierDietaryCalcium

A quantity sample type that measures the amount of calcium consumed.

HKQuantityTypeIdentifierDietaryCarbohydrates

A quantity sample type that measures the amount of carbohydrates consumed.

HKQuantityTypeIdentifierDietaryChloride

A quantity sample type that measures the amount of chloride consumed.

HKQuantityTypeIdentifierDietaryCholesterol

A quantity sample type that measures the amount of cholesterol consumed.

HKQuantityTypeIdentifierDietaryChromium

A quantity sample type that measures the amount of chromium consumed.

HKQuantityTypeIdentifierDietaryCopper

A quantity sample type that measures the amount of copper consumed.

HKQuantityTypeIdentifierDietaryEnergyConsumed

A quantity sample type that measures the amount of energy consumed.

HKQuantityTypeIdentifierDietaryFatMonounsaturated

A quantity sample type that measures the amount of monounsaturated fat consumed.

HKQuantityTypeIdentifierDietaryFatPolyunsaturated

A quantity sample type that measures the amount of polyunsaturated fat consumed.

HKQuantityTypeIdentifierDietaryFatSaturated

A quantity sample type that measures the amount of saturated fat consumed.

HKQuantityTypeIdentifierDietaryFatTotal

A quantity sample type that measures the total amount of fat consumed.

HKQuantityTypeIdentifierDietaryFiber

A quantity sample type that measures the amount of fiber consumed.

HKQuantityTypeIdentifierDietaryFolate

A quantity sample type that measures the amount of folate (folic acid) consumed.

HKQuantityTypeIdentifierDietaryIodine

A quantity sample type that measures the amount of iodine consumed.

HKQuantityTypeIdentifierDietaryIron

A quantity sample type that measures the amount of iron consumed.

HKQuantityTypeIdentifierDietaryMagnesium

A quantity sample type that measures the amount of magnesium consumed.

HKQuantityTypeIdentifierDietaryManganese

A quantity sample type that measures the amount of manganese consumed.

HKQuantityTypeIdentifierDietaryMolybdenum

A quantity sample type that measures the amount of molybdenum consumed.

HKQuantityTypeIdentifierDietaryNiacin

A quantity sample type that measures the amount of niacin (vitamin B3) consumed.

HKQuantityTypeIdentifierDietaryPantothenicAcid

A quantity sample type that measures the amount of pantothenic acid (vitamin B5) consumed.

HKQuantityTypeIdentifierDietaryPhosphorus

A quantity sample type that measures the amount of phosphorus consumed.

HKQuantityTypeIdentifierDietaryPotassium

A quantity sample type that measures the amount of potassium consumed.

HKQuantityTypeIdentifierDietaryProtein

A quantity sample type that measures the amount of protein consumed.

HKQuantityTypeIdentifierDietaryRiboflavin

A quantity sample type that measures the amount of riboflavin (vitamin B2) consumed.

HKQuantityTypeIdentifierDietarySelenium

A quantity sample type that measures the amount of selenium consumed.

HKQuantityTypeIdentifierDietarySodium

A quantity sample type that measures the amount of sodium consumed.

HKQuantityTypeIdentifierDietarySugar

A quantity sample type that measures the amount of sugar consumed.

HKQuantityTypeIdentifierDietaryThiamin

A quantity sample type that measures the amount of thiamin (vitamin B1) consumed.

HKQuantityTypeIdentifierDietaryVitaminA

A quantity sample type that measures the amount of vitamin A consumed.

HKQuantityTypeIdentifierDietaryVitaminB12

A quantity sample type that measures the amount of cyanocobalamin (vitamin B12) consumed.

HKQuantityTypeIdentifierDietaryVitaminB6

A quantity sample type that measures the amount of pyridoxine (vitamin B6) consumed.

HKQuantityTypeIdentifierDietaryVitaminC

A quantity sample type that measures the amount of vitamin C consumed.

HKQuantityTypeIdentifierDietaryVitaminD

A quantity sample type that measures the amount of vitamin D consumed.

HKQuantityTypeIdentifierDietaryVitaminE

A quantity sample type that measures the amount of vitamin E consumed.

HKQuantityTypeIdentifierDietaryVitaminK

A quantity sample type that measures the amount of vitamin K consumed.

HKQuantityTypeIdentifierDietaryWater

A quantity sample type that measures the amount of water consumed.

HKQuantityTypeIdentifierDietaryZinc

A quantity sample type that measures the amount of zinc consumed.

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.

HKQuantityTypeIdentifierActiveEnergyBurned

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

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.

HKQuantityTypeIdentifierAppleStandTime

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

Reproductive Health

HKQuantityTypeIdentifierBasalBodyTemperature

A quantity sample type that measures the user’s basal body temperature.

UV Exposure

HKQuantityTypeIdentifierUVExposure

A quantity sample type that measures the user’s exposure to UV radiation.

Audio Exposure

HKQuantityTypeIdentifierEnvironmentalAudioExposure

A quantity sample type that measures audio exposure to sounds in the environment.

HKQuantityTypeIdentifierHeadphoneAudioExposure

A quantity sample type that measures audio exposure from headphones.

See Also

Creating Quantity Types

+ quantityTypeForIdentifier:

Returns the shared quantity type for the provided identifier.