Skip to content
AF
HealthKit reference

sexualActivity: HealthKit category type

HKCategoryTypeIdentifierSexualActivity · read from Apple’s documentation on 2026-10-02

HKCategoryTypeIdentifier.sexualActivity (Objective-C HKCategoryTypeIdentifierSexualActivity) is a HealthKit category type in Apple's "Reproductive Health" group. Apple's abstract: “A category sample type that records sexual activity.” Apple's page names the generic HKCategoryValue for its sample values rather than an enum of its own. It is available from iOS 9.0 and watchOS 2.0.

What Apple says sexualActivity is

A category sample type that records sexual activity.

Apple’s abstract, quoted from its sexualActivity reference page, read 2026-10-02. Apple’s discussion of the type runs 11 words.

Swift
HKCategoryTypeIdentifier.sexualActivity
Objective-C
HKCategoryTypeIdentifierSexualActivity
Family
HKCategoryTypeIdentifier
Apple's topic group
Reproductive Health

Availability

The versions Apple’s documentation data gives for sexualActivity, platform by platform, as read on 2026-10-02.

PlatformIntroducedDeprecated
iOS9.0—
iPadOS9.0—
Mac Catalyst13.0—
macOS13.0—
visionOS1.0—
watchOS2.0—

The rest of that release: HealthKit Types Introduced in iOS 9.

What a sample holds

Value enum

HKCategoryValue — the enum Apple’s page for sexualActivity names: the generic one, not one of its own. Every category type’s enum is on the HKCategoryValue reference.

Aggregation style and unit family apply only to quantity types. For a category type the dataset records neither, because the concept does not apply — not because Apple declined to say.

Can apps write sexualActivity?

Apple’s documentation for sexualActivity does not state that its samples are read-only. Apple states read-only status only in prose, and its silence is not a statement either way, so this page makes no claim that apps can save it.

On Android Health Connect

No verified Health Connect counterpart. The cross-platform matrix pairs only metrics checked against both Apple’s and Google’s documentation, and sexualActivity is not among them. A similarly named Health Connect record may exist, but a name match is not a verified mapping.

Metadata keys Apple ties to it

The HKMetadataKey constants whose own Apple text names sexualActivity, with the sentence that does, from Apple’s metadata-key pages read 2026-10-04.

Questions

Which enum decodes sexualActivity sample values?
The generic HKCategoryValue. Apple's page for sexualActivity names it rather than an enum of its own; this site's HKCategoryValue reference lists every category type that resolves the same way and what that means for reading the samples.
Which HealthKit metadata keys mention sexualActivity?
HKMetadataKeySexualActivityProtectionUsed. Apple's text for HKMetadataKeySexualActivityProtectionUsed: "This metadata key can be used with sexualActivity category samples."
Which iOS version added sexualActivity?
iOS 9.0. Apple's availability data for sexualActivity lists iOS 9.0, iPadOS 9.0, Mac Catalyst 13.0, macOS 13.0, visionOS 1.0 and watchOS 2.0.

Sources checked

Apple’s abstract and sentences are quoted for identification; the page layout, the capsule and the cross-platform pairing are AIFitnessAPI’s. Generated from Apple’s documentation by scripts/fetch-healthkit-identifiers.mjs, not typed by hand — the same data as the full identifier table.

← All HealthKit type identifiers · Reproductive health