Structure

HKCorrelationTypeIdentifier

Used to define the identifiers that create correlation type objects.

Declaration

struct HKCorrelationTypeIdentifier

Overview

To create an HKCorrelationType instance, pass an HKCorrelationTypeIdentifier value to the correlationType(forIdentifier:) method.

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

Topics

Correlation Types

static let bloodPressure: HKCorrelationTypeIdentifier

Blood pressure correlation types combine a systolic sample and a diastolic sample into a single blood pressure reading.

static let food: HKCorrelationTypeIdentifier

Food correlation types combine any number of nutritional samples into a single food object.

Initializers

init(rawValue: String)

Returns a newly initialized correlation type identifier using the provided string.

Relationships

See Also

Creating Correlation Types

class func correlationType(forIdentifier: HKCorrelationTypeIdentifier) -> HKCorrelationType?

Returns the shared correlation type for the provided identifier.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software