SleepStages
Stay organized with collections
Save and categorize content based on your preferences.
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
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
public static final int
AWAKE
The user is in an awake period in the middle of sleep session.
Constant Value: 1
public static final int
OUT_OF_BED
The user is out of their bed in the middle of a sleep session.
Constant Value: 3
public static final int
SLEEP
public static final int
SLEEP_DEEP
The user is in a deep sleep cycle.
Constant Value: 5
public static final int
SLEEP_LIGHT
The user is in a light sleep cycle.
Constant Value: 4
public static final int
SLEEP_REM
The user is in a REM sleep cycle.
Constant Value: 6
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-05-26 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2022-05-26 UTC.",
"state": ""
}