Global Variable

HKCategoryTypeIdentifierSleepAnalysis

A category sample type for sleep analysis information.

Declaration

const HKCategoryTypeIdentifier HKCategoryTypeIdentifierSleepAnalysis;

Discussion

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

HKCategoryTypeIdentifierMindfulSession

A category sample type for recording a mindful session.