public enum SleepStageSupport
- Object
- Enum<SleepStageSupport>
- SleepStageSupport
ImplementsComparable<SleepStageSupport>
How much stage detail a SleepSample actually carries.
A queryable fact rather than something to infer from the data, because the three cases need different UI and the difference is not the app’s fault: a phone-inferred session and a watch-recorded one are the same type carrying different fidelity.
Enum constants
NONE | No stage intervals at all – the session knows when it started and ended and nothing else. |
ASLEEP_AWAKE | Asleep and awake spans only, with no breakdown of the asleep time. |
STAGED | A real hypnogram: at least one of SleepStage.LIGHT, SleepStage.CORE, SleepStage.DEEP or SleepStage.REM. |
Methods
public static SleepStageSupport[] values() | |
public static SleepStageSupport valueOf(String name) |
Inherited methods
Enum constant details
NONE
NONENo stage intervals at all – the session knows when it started and
ended and nothing else.
ASLEEP_AWAKE
ASLEEP_AWAKEAsleep and awake spans only, with no breakdown of the asleep time.
A phone-inferred session, or an iOS session recorded before the
stage values arrived in iOS 16.
STAGED
STAGEDA real hypnogram: at least one of
SleepStage.LIGHT,
SleepStage.CORE, SleepStage.DEEP or SleepStage.REM.Method details
values
public static SleepStageSupport[] values()valueOf
public static SleepStageSupport valueOf(String name)