StageType
class StageType
kotlin.Any | |
↳ | android.health.connect.datatypes.SleepSessionRecord.StageType |
Identifier for sleeping stage, as returned by Stage.getType()
.
Summary
Constants | |
---|---|
static Int |
The user is awake and either known to be in bed, or it is unknown whether they are in bed or not. |
static Int |
The user is awake and in bed. |
static Int |
The user is out of bed and assumed to be awake. |
static Int |
The user is asleep but the particular stage of sleep (light, deep or REM) is unknown. |
static Int |
The user is in a deep sleep stage. |
static Int |
The user is in a light sleep stage. |
static Int |
The user is in a REM sleep stage. |
static Int |
Use this type if the stage of sleep is unknown. |
Constants
STAGE_TYPE_AWAKE
static val STAGE_TYPE_AWAKE: Int
The user is awake and either known to be in bed, or it is unknown whether they are in bed or not.
Value: 1
STAGE_TYPE_AWAKE_IN_BED
static val STAGE_TYPE_AWAKE_IN_BED: Int
The user is awake and in bed.
Value: 7
STAGE_TYPE_AWAKE_OUT_OF_BED
static val STAGE_TYPE_AWAKE_OUT_OF_BED: Int
The user is out of bed and assumed to be awake.
Value: 3
STAGE_TYPE_SLEEPING
static val STAGE_TYPE_SLEEPING: Int
The user is asleep but the particular stage of sleep (light, deep or REM) is unknown.
Value: 2
STAGE_TYPE_SLEEPING_DEEP
static val STAGE_TYPE_SLEEPING_DEEP: Int
The user is in a deep sleep stage.
Value: 5
STAGE_TYPE_SLEEPING_LIGHT
static val STAGE_TYPE_SLEEPING_LIGHT: Int
The user is in a light sleep stage.
Value: 4
STAGE_TYPE_SLEEPING_REM
static val STAGE_TYPE_SLEEPING_REM: Int
The user is in a REM sleep stage.
Value: 6
STAGE_TYPE_UNKNOWN
static val STAGE_TYPE_UNKNOWN: Int
Use this type if the stage of sleep is unknown.
Value: 0