Global Variable

HKCategoryTypeIdentifierSexualActivity

A category sample type for recording sexual activity.

Declaration

const HKCategoryTypeIdentifier HKCategoryTypeIdentifierSexualActivity;

Discussion

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

Topics

Metadata Keys

HKMetadataKeySexualActivityProtectionUsed

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

See Also

Reproductive Health

HKCategoryTypeIdentifierIntermenstrualBleeding

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

HKCategoryTypeIdentifierMenstrualFlow

A category sample type for representing menstrual cycles.

HKCategoryTypeIdentifierOvulationTestResult

A category sample type for recording the result of an ovulation home test.

HKCategoryTypeIdentifierCervicalMucusQuality

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

HKQuantityTypeIdentifierBasalBodyTemperature

A quantity sample type that measures the user’s basal body temperature.