SleepSession

data class SleepSession(val samples: List<KHSleepStageSample>) : KHRecord

Captures the user's sleep length and its stages. Each record represents a time interval for a full sleep session.

All sleep stage time intervals should fall within the sleep session interval. Time intervals for stages don't need to be continuous but shouldn't overlap.

Parameters

samples

The list of captured sleep values along with their time and stage instances

Constructors

Link copied to clipboard
constructor(samples: List<KHSleepStageSample>)

Properties

Link copied to clipboard