Type Property


A category sample type for sleep analysis information.


static let sleepAnalysis: HKCategoryTypeIdentifier


These samples use values from the HKCategoryValueSleepAnalysis enum.

For best results when analyzing sleep samples, it's recommended that you use HKMetadataKeyTimeZone to store time zone metadata with your sleep sample data.

See Also

Mindfulness and Sleep

static let mindfulSession: HKCategoryTypeIdentifier

A category sample type for recording a mindful session.