SleepSessionRecord.StageType
public
static
final
class
SleepSessionRecord.StageType
extends Object
java.lang.Object | |
↳ | android.health.connect.datatypes.SleepSessionRecord.StageType |
Identifier for sleeping stage, as returned by Stage#getType()
.
Summary
Constants | |
---|---|
int |
STAGE_TYPE_AWAKE
The user is awake and either known to be in bed, or it is unknown whether they are in bed or not. |
int |
STAGE_TYPE_AWAKE_IN_BED
The user is awake and in bed. |
int |
STAGE_TYPE_AWAKE_OUT_OF_BED
The user is out of bed and assumed to be awake. |
int |
STAGE_TYPE_SLEEPING
The user is asleep but the particular stage of sleep (light, deep or REM) is unknown. |
int |
STAGE_TYPE_SLEEPING_DEEP
The user is in a deep sleep stage. |
int |
STAGE_TYPE_SLEEPING_LIGHT
The user is in a light sleep stage. |
int |
STAGE_TYPE_SLEEPING_REM
The user is in a REM sleep stage. |
int |
STAGE_TYPE_UNKNOWN
Use this type if the stage of sleep is unknown. |
Inherited methods | |
---|---|
Constants
STAGE_TYPE_AWAKE
public static final int STAGE_TYPE_AWAKE
The user is awake and either known to be in bed, or it is unknown whether they are in bed or not.
Constant Value: 1 (0x00000001)
STAGE_TYPE_AWAKE_IN_BED
public static final int STAGE_TYPE_AWAKE_IN_BED
The user is awake and in bed.
Constant Value: 7 (0x00000007)
STAGE_TYPE_AWAKE_OUT_OF_BED
public static final int STAGE_TYPE_AWAKE_OUT_OF_BED
The user is out of bed and assumed to be awake.
Constant Value: 3 (0x00000003)
STAGE_TYPE_SLEEPING
public static final int STAGE_TYPE_SLEEPING
The user is asleep but the particular stage of sleep (light, deep or REM) is unknown.
Constant Value: 2 (0x00000002)
STAGE_TYPE_SLEEPING_DEEP
public static final int STAGE_TYPE_SLEEPING_DEEP
The user is in a deep sleep stage.
Constant Value: 5 (0x00000005)
STAGE_TYPE_SLEEPING_LIGHT
public static final int STAGE_TYPE_SLEEPING_LIGHT
The user is in a light sleep stage.
Constant Value: 4 (0x00000004)
STAGE_TYPE_SLEEPING_REM
public static final int STAGE_TYPE_SLEEPING_REM
The user is in a REM sleep stage.
Constant Value: 6 (0x00000006)
STAGE_TYPE_UNKNOWN
public static final int STAGE_TYPE_UNKNOWN
Use this type if the stage of sleep is unknown.
Constant Value: 0 (0x00000000)