public enum SleepStageSupport

  1. Object
  2. Enum<SleepStageSupport>
  3. 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

NONENo stage intervals at all – the session knows when it started and ended and nothing else.
ASLEEP_AWAKEAsleep and awake spans only, with no breakdown of the asleep time.
STAGEDA 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

NONE
No stage intervals at all – the session knows when it started and ended and nothing else.

ASLEEP_AWAKE

ASLEEP_AWAKE
Asleep 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

STAGED
A 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)