Class

HKCorrelationType

The HKCorrelationType class is a concrete subclass of the HKObjectType class. HealthKit uses correlation types to create correlation objects that group multiple samples into a single data entry. iOS 8.0 provides support for using correlation types to represent both food and blood pressure.

Overview

To create correlation type instances, use the correlationType(forIdentifier:) convenience method and pass a valid correlation type identifier.

Subclassing Notes

Like many HealthKit classes, correlation types are not extensible and should not be subclassed.

This class reuses the same instance whenever possible. Letting multiple queries share the same workout type helps reduce the overall memory usage.

Relationships

Inherits From

Conforms To