Structure

HKCategoryTypeIdentifier

Identifiers for creating category types.

Declaration

struct HKCategoryTypeIdentifier

Overview

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

For the complete list of quantity type identifiers, see Activity.

Topics

Vital Signs

static let lowHeartRateEvent: HKCategoryTypeIdentifier

A category sample type for low heart rate events.

static let highHeartRateEvent: HKCategoryTypeIdentifier

A category sample type for high heart rate events.

static let irregularHeartRhythmEvent: HKCategoryTypeIdentifier

A category sample type for irregular heart rhythm events.

Reproductive Health

static let cervicalMucusQuality: HKCategoryTypeIdentifier

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

static let menstrualFlow: HKCategoryTypeIdentifier

A category sample type for representing menstrual cycles.

static let intermenstrualBleeding: HKCategoryTypeIdentifier

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

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.

Activity

static let appleStandHour: HKCategoryTypeIdentifier

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

Mindfullness and Sleep

static let mindfulSession: HKCategoryTypeIdentifier

A category sample type for recording a mindful session.

static let sleepAnalysis: HKCategoryTypeIdentifier

A category sample type for sleep analysis information.

Audio Exposure

static let audioExposureEvent: HKCategoryTypeIdentifier

A category sample type for audio exposure events.

Self Care

static let toothbrushingEvent: HKCategoryTypeIdentifier

A category sample type for toothbrushing.

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.