AI-generated Key Takeaways
-
SleepStages
class provides constants representing different sleep stages like light, deep, REM sleep, awake, and out-of-bed states during a sleep session. -
These constants can be used with
FitnessActivities.SLEEP
sessions andTYPE_SLEEP_SEGMENT
data type for detailed sleep analysis. -
Each sleep stage is represented by a unique integer constant (e.g.,
AWAKE
,SLEEP_DEEP
,SLEEP_REM
). -
The
SleepStages
class inherits methods from thejava.lang.Object
class, likeequals
,hashCode
, andtoString
.
Constants representing different sleep stages, such as light sleep, deep sleep. For a
Session
with
type FitnessActivities.SLEEP
,
Sleep activities can be stored and read in sleep
segment
data type, for the same time range, to provide a a more detail breakdown
of a user's sleep stages in one sleep session.
Constant Summary
int | AWAKE | The user is in an awake period in the middle of sleep session. |
int | OUT_OF_BED | The user is out of their bed in the middle of a sleep session. |
int | SLEEP | The user is sleeping. |
int | SLEEP_DEEP | The user is in a deep sleep cycle. |
int | SLEEP_LIGHT | The user is in a light sleep cycle. |
int | SLEEP_REM | The user is in a REM sleep cycle. |
Inherited Method Summary
Constants
public static final int AWAKE
The user is in an awake period in the middle of sleep session.
public static final int OUT_OF_BED
The user is out of their bed in the middle of a sleep session.
public static final int SLEEP
The user is sleeping.
public static final int SLEEP_DEEP
The user is in a deep sleep cycle.
public static final int SLEEP_LIGHT
The user is in a light sleep cycle.
public static final int SLEEP_REM
The user is in a REM sleep cycle.