public static interface HealthConstants.SleepStage
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.
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.
Properties of the following extending interfaces are available for this data type.
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
It's the ID of "Sleep #2" data in the example figure.
static final String STAGE
static final int STAGE_AWAKE
static final int STAGE_LIGHT
static final int STAGE_DEEP
static final int STAGE_REM
static final String HEALTH_DATA_TYPE