public final class HKCategoryValueSleepAnalysis
extends java.lang.Object
Set of values that may be used for HKCategorySamples with the HKCategoryTypeIdentifierSleepAnalysis type.
To represent the user being both in bed and asleep, use two or more samples with overlapping times. By comparing the start and end times of these samples, it is possible to calculate a number of secondary statistics: 1) The amount of time it took for the user to fall asleep 2) The percentage of time in bed that the user actually spent sleeping, 3) The number of times the user woke while in bed 4) The total amount of time spent both in bed and asleep.
public static final long InBed
public static final long Asleep
public static final long Awake