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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
public static final int STAGE_TYPE_SLEEPING_DEEP

The user is in a deep sleep stage.

Constant Value: 5 (0x00000005)

STAGE_TYPE_SLEEPING_LIGHT

Added in API level 34
public static final int STAGE_TYPE_SLEEPING_LIGHT

The user is in a light sleep stage.

Constant Value: 4 (0x00000004)

STAGE_TYPE_SLEEPING_REM

Added in API level 34
public static final int STAGE_TYPE_SLEEPING_REM

The user is in a REM sleep stage.

Constant Value: 6 (0x00000006)

STAGE_TYPE_UNKNOWN

Added in API level 34
public static final int STAGE_TYPE_UNKNOWN

Use this type if the stage of sleep is unknown.

Constant Value: 0 (0x00000000)