Structure

HKCategoryTypeIdentifier

Used to define the identifiers that create category type objects.

Overview

To create an HKCategoryType instance, pass an HKCategoryTypeIdentifier value to the categoryType(forIdentifier:) method.

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

Topics

Category Types

static let appleStandHour: HKCategoryTypeIdentifier

A category sample type indicating whether the user has stood for at least one minute during the sample.

static let cervicalMucusQuality: HKCategoryTypeIdentifier

A category sample type for representing the quality of the user’s cervical mucus.

static let intermenstrualBleeding: HKCategoryTypeIdentifier

A category sample type for representing spotting outside the normal menstruation period.

static let menstrualFlow: HKCategoryTypeIdentifier

A category sample type for representing menstrual cycles.

static let mindfulSession: HKCategoryTypeIdentifier

A category sample type for recording a mindful session.

static let ovulationTestResult: HKCategoryTypeIdentifier

A category sample type for recording the result of an ovulation home test.

static let sexualActivity: HKCategoryTypeIdentifier

A category sample type for recording sexual activity.

static let sleepAnalysis: HKCategoryTypeIdentifier

A category sample type for sleep analysis information.

Initializers

init(rawValue: String)

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

Relationships

See Also

Creating Category Types

class func categoryType(forIdentifier: HKCategoryTypeIdentifier) -> HKCategoryType?

Returns the shared category type for the provided identifier.