Package apple.healthkit.enums
Class HKCategoryValueSleepAnalysis
- java.lang.Object
-
- apple.healthkit.enums.HKCategoryValueSleepAnalysis
-
public final class HKCategoryValueSleepAnalysis extends java.lang.Object[@enum] HKCategoryValueSleepAnalysis 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. [@constant] HKCategoryValueSleepAnalysisInBed The user is in bed. [@constant] HKCategoryValueSleepAnalysisAsleepUnspecified The user is asleep and no specific stage is specified. [@constant] HKCategoryValueSleepAnalysisAwake The user is awake. [@constant] HKCategoryValueSleepAnalysisAsleepCore Corresponds to Stages 1 and 2 of AASM scoring model. [@constant] HKCategoryValueSleepAnalysisAsleepDeep Corresponds to Stage 3 of AASM scoring model. [@constant] HKCategoryValueSleepAnalysisAsleepREM Corresponds to REM stage of AASM scoring model. API-Since: 8.0
-
-
Field Summary
Fields Modifier and Type Field Description static longAsleepDeprecated.static longAsleepCoreAPI-Since: 16.0static longAsleepDeepAPI-Since: 16.0static longAsleepREMAPI-Since: 16.0static longAsleepUnspecifiedAPI-Since: 16.0static longAwakeAPI-Since: 10.0static longInBedAPI-Since: 8.0
-
-
-
Field Detail
-
InBed
public static final long InBed
API-Since: 8.0- See Also:
- Constant Field Values
-
Asleep
@Deprecated public static final long Asleep
Deprecated.API-Since: 8.0 Deprecated-Since: 16.0- See Also:
- Constant Field Values
-
Awake
public static final long Awake
API-Since: 10.0- See Also:
- Constant Field Values
-
AsleepUnspecified
public static final long AsleepUnspecified
API-Since: 16.0- See Also:
- Constant Field Values
-
AsleepCore
public static final long AsleepCore
API-Since: 16.0- See Also:
- Constant Field Values
-
AsleepDeep
public static final long AsleepDeep
API-Since: 16.0- See Also:
- Constant Field Values
-
AsleepREM
public static final long AsleepREM
API-Since: 16.0- See Also:
- Constant Field Values
-
-