Type Property

sexualActivity

A category sample type for recording sexual activity.

Declaration

static let sexualActivity: HKCategoryTypeIdentifier

Discussion

Use a HKCategoryValue.notApplicable value with these samples. These samples can include HKMetadataKeySexualActivityProtectionUsed metadata.

Topics

Metadata Keys

let HKMetadataKeySexualActivityProtectionUsed: String

A key that indicates whether protection was used during sexual activity. This metadata key can be used with sexualActivity category samples.

See Also

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.