Global Variable

HKMetadataKeySexualActivityProtectionUsed

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

Declaration

let HKMetadataKeySexualActivityProtectionUsed: String

Discussion

Set this key’s value to true if protection was used during sexual activity; otherwise, set it to false.

See Also

Reproductive Health Keys

let HKMetadataKeyMenstrualCycleStart: String

A key that indicates whether the sample represents the start of a menstrual cycle. This metadata key is required for menstrualFlow category samples.