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.

Beta

Self Care

static let toothbrushingEvent: HKCategoryTypeIdentifier

A category sample type for toothbrushing.

Beta

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.

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