Sleep
class Sleep
Sleep is amount of episodes of sleep ended in specified day with gap between each of episode no more than SLEEP_GAP.
All fields can be calculated from episodes but for saving time they has been calculated during Sleep instance creation.
See also
Types
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Duration of the sleep in seconds (doesn't include awakesDuration). Default units: TimeUnit.SECONDS.
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Returns awakes duration in specified time units.
Link copied to clipboard
Returns sleep duration that doesn't includes awakesDuration in specified time units.
Link copied to clipboard
Returns total sleep duration (includes duration of awakes) in specified time units.