public static interface HealthConstants.SleepStage extends HealthConstants.SessionMeasurement
NREM sleep consists of the following stages: - Light: In light sleep, the user transits from wakefulness to sleep. The user's breading and heart rate become regular and the user's body temperature drops. - Deep: In deep sleep, the user becomes less responsive to the user's surroundings. The user's breathing slows and his/her muscles are more relaxed. This is the stage when the user's body restores and recharges itself.
In REM sleep, the user's body is relaxed and immobile while the user's brain becomes more active and re-energizes itself for the next day. This is the stage when the majority of the user's dreams occur.
Awake includes the times you wake up briefly and the periods the user is restless during a sleep.
HealthConstants.Sleep includes only the start and end time of the user's sleep. SleepStage gives detailed sleep stage information with several sections for the specified Sleep data. The sleep stage can be presented as the following figure.
HealthConstants.Sleep
SleepStage
Sleep
Sleep data is saved as "Sleep #1" if HealthConstants.Sleep is used only.
Otherwise, "Sleep #2" data that is composed of HealthConstants.Sleep and HealthConstants.SleepStage. It shows:
HealthConstants.SleepStage
SLEEP_LIGHT
SLEEP_DEEP
SLEEP_REM
SLEEP_AWAKE
Properties of the following extending interfaces are available for this data type.
HealthConstants.Common
HealthConstants.SessionMeasurement
static String
HEALTH_DATA_TYPE
SLEEP_ID
STAGE
static int
STAGE_AWAKE
STAGE_DEEP
STAGE_LIGHT
STAGE_REM
END_TIME, START_TIME, TIME_OFFSET
CREATE_TIME, CUSTOM, DEVICE_UUID, PACKAGE_NAME, UPDATE_TIME, UUID
static final String SLEEP_ID
Set this property with UUID of HealthConstants.Sleep. It's the ID of "Sleep #2" data in the example figure.
UUID
String
static final String STAGE
int
static final int STAGE_AWAKE
40001
static final int STAGE_LIGHT
40002
static final int STAGE_DEEP
40003
static final int STAGE_REM
40004
static final String HEALTH_DATA_TYPE
"com.samsung.health.sleep_stage"