<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKCategoryTypeIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@T@HKCategoryTypeIdentifier"
  },
  "title" : "HKCategoryTypeIdentifier"
}
-->

# HKCategoryTypeIdentifier

Identifiers for creating category types.

```
struct HKCategoryTypeIdentifier
```

## Overview

To create an [`HKCategoryType`](/documentation/HealthKit/HKCategoryType) instance, pass an [`HKCategoryTypeIdentifier`](/documentation/HealthKit/HKCategoryTypeIdentifier) value to the [`categoryType(forIdentifier:)`](/documentation/HealthKit/HKObjectType/categoryType(forIdentifier:)) method.

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

## Topics

### Activity

[`appleStandHour`](/documentation/HealthKit/HKCategoryTypeIdentifier/appleStandHour)

A category sample type that counts the number of hours in the day during which the user has stood and moved for at least one minute per hour.

[`lowCardioFitnessEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/lowCardioFitnessEvent)

An event that indicates the user’s VO2 max values consistently fall below a particular aerobic fitness threshold.

### Reproductive Health

[`menstrualFlow`](/documentation/HealthKit/HKCategoryTypeIdentifier/menstrualFlow)

A category sample type that records menstrual cycles.

[`intermenstrualBleeding`](/documentation/HealthKit/HKCategoryTypeIdentifier/intermenstrualBleeding)

A category sample type that records spotting outside the normal menstruation period.

[`infrequentMenstrualCycles`](/documentation/HealthKit/HKCategoryTypeIdentifier/infrequentMenstrualCycles)

A category sample that indicates an infrequent menstrual cycle.

[`irregularMenstrualCycles`](/documentation/HealthKit/HKCategoryTypeIdentifier/irregularMenstrualCycles)

A category sample that indicates an irregular menstrual cycle.

[`persistentIntermenstrualBleeding`](/documentation/HealthKit/HKCategoryTypeIdentifier/persistentIntermenstrualBleeding)

A category sample that indicates persistent intermenstrual bleeding.

[`prolongedMenstrualPeriods`](/documentation/HealthKit/HKCategoryTypeIdentifier/prolongedMenstrualPeriods)

A category sample that indicates a prolonged menstrual cycle.

[`cervicalMucusQuality`](/documentation/HealthKit/HKCategoryTypeIdentifier/cervicalMucusQuality)

A category sample type that records the quality of the user’s cervical mucus.

[`ovulationTestResult`](/documentation/HealthKit/HKCategoryTypeIdentifier/ovulationTestResult)

A category sample type that records the result of an ovulation home test.

[`progesteroneTestResult`](/documentation/HealthKit/HKCategoryTypeIdentifier/progesteroneTestResult)

A category type that represents the results from a home progesterone test.

[`sexualActivity`](/documentation/HealthKit/HKCategoryTypeIdentifier/sexualActivity)

A category sample type that records sexual activity.

[`contraceptive`](/documentation/HealthKit/HKCategoryTypeIdentifier/contraceptive)

A category sample type that records the use of contraceptives.

[`pregnancy`](/documentation/HealthKit/HKCategoryTypeIdentifier/pregnancy)

A category type that records pregnancy.

[`pregnancyTestResult`](/documentation/HealthKit/HKCategoryTypeIdentifier/pregnancyTestResult)

A category type that represents the results from a home pregnancy test.

[`lactation`](/documentation/HealthKit/HKCategoryTypeIdentifier/lactation)

A category type that records lactation.

[`menopausalState`](/documentation/HealthKit/HKCategoryTypeIdentifier/menopausalState)

An identifier for samples that record a person’s menopausal state.

[`bleedingAfterMenopause`](/documentation/HealthKit/HKCategoryTypeIdentifier/bleedingAfterMenopause)

An identifier for samples that record bleeding after menopause.

### Hearing

[`environmentalAudioExposureEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/environmentalAudioExposureEvent)

A category sample type that records exposure to potentially damaging sounds from the environment.

[`HKCategoryValueEnvironmentalAudioExposureEvent`](/documentation/HealthKit/HKCategoryValueEnvironmentalAudioExposureEvent)

Exposure events for environmental audio.

[`headphoneAudioExposureEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/headphoneAudioExposureEvent)

A category sample type that records exposure to potentially damaging sounds from headphones.

[`HKCategoryValueHeadphoneAudioExposureEvent`](/documentation/HealthKit/HKCategoryValueHeadphoneAudioExposureEvent)

Exposure events for headphone audio.

[`audioExposureEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/audioExposureEvent)

A category sample type for audio exposure events.

### Vital Signs

[`lowHeartRateEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/lowHeartRateEvent)

A category sample type for low heart rate events.

[`highHeartRateEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/highHeartRateEvent)

A category sample type for high heart rate events.

[`irregularHeartRhythmEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/irregularHeartRhythmEvent)

A category sample type for irregular heart rhythm events.

### Mobility

[`appleWalkingSteadinessEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/appleWalkingSteadinessEvent)

A category sample type that records an incident where the user showed a reduced score for their gait’s steadiness.

### Symptoms

  <doc://com.apple.healthkit/documentation/HealthKit/symptom-type-identifiers>

### Mindfulness and Sleep

[`mindfulSession`](/documentation/HealthKit/HKCategoryTypeIdentifier/mindfulSession)

A category sample type for recording a mindful session.

[`sleepAnalysis`](/documentation/HealthKit/HKCategoryTypeIdentifier/sleepAnalysis)

A category sample type for sleep analysis information.

### Self Care

[`toothbrushingEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/toothbrushingEvent)

A category sample type for toothbrushing events.

[`handwashingEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/handwashingEvent)

A category sample type for handwashing events.

### Initializers

[`init(rawValue:)`](/documentation/HealthKit/HKCategoryTypeIdentifier/init(rawValue:))

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

### Type Properties - generated

[`bleedingAfterMenopause`](/documentation/HealthKit/HKCategoryTypeIdentifier/bleedingAfterMenopause)

An identifier for samples that record bleeding after menopause.

[`hypertensionEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/hypertensionEvent)

[`menopausalState`](/documentation/HealthKit/HKCategoryTypeIdentifier/menopausalState)

An identifier for samples that record a person’s menopausal state.

## See Also

[`categoryType(forIdentifier:)`](/documentation/HealthKit/HKObjectType/categoryType(forIdentifier:))

Returns the shared category type for the provided identifier.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)