Class

HKQuantityType

The HKQuantityType class is a concrete subclass of the HKObjectType class. HealthKit uses quantity types to create samples that store a numerical value. Use quantity type instances to create quantity samples that you can save in the HealthKit store. For more information, see HKQuantitySample.

Overview

To create quantity type instances, use the quantityType(forIdentifier:) convenience method.

Topics

Accessing Quantity Type Data

var aggregationStyle: HKQuantityAggregationStyle

The aggregation style for the given quantity type.

func `is`(compatibleWith: HKUnit)

Returns a Boolean value that indicates whether the quantity type is compatible with the given unit.

Constants

enum HKQuantityAggregationStyle

Constant values that describe how quantities can be aggregated over time.

Relationships

Inherits From

Conforms To