SleepSummary

data class SleepSummary

Full summary about sleeps for the twenty-four hours.

Properties

Link copied to clipboard

Sleep quality.

Link copied to clipboard

Sleeps included in the twenty-four hours (ended in the day).

Functions

Link copied to clipboard

Returns total awakes count for the day.

Link copied to clipboard
fun getAwakesDuration(units: TimeUnit = TimeUnit.MINUTES): Long

Returns total duration of awakes for the day in specified time units. Default units: TimeUnit.MINUTES.

Link copied to clipboard
fun getSleepDuration(units: TimeUnit = TimeUnit.MINUTES): Long

Returns sleep duration in specified time units (doesn't include duration of awakes). Default units: TimeUnit.MINUTES.

Link copied to clipboard
fun getTotalTimeInBed(units: TimeUnit = TimeUnit.MINUTES): Long

Returns total time in bed (sleep duration with duration of awakes) for the day in specified time units. Default units: TimeUnit.MINUTES.