Sleep Data
RxJava2 interface for retrieving measurements about sleep.
Smart band gather information about sleeps, rem phases and sleep anxiety and gives sleep recommendations.
Sleep consist of episodes of sleep and episodes of awake. If awake more than SleepCacheConfiguration.sleepGap, than there will be several sleeps for one day. All sleeps ended in a day counts in the day even if sleep has started in previous day.
This module have settings. See SleepCacheConfiguration.
Functions
Clear sleep cache. All current subscriptions will emit empty values.
Update sleep cache configuration.
Returns current sleep cache configuration.
Returns Maybe that emits list of episodes of rem sleep since specified time sorted ascending by time or completes if there are no episodes of rem sleep since specified time.
Returns Flowable that emits list of anxiety in sleep for day daysBack
ago sorted ascending by time.
Returns Flowable that emits UNIX-timestamp of last anxiety at sleep data.
Returns Flowable that emits list of episodes of rem sleep for day daysBack
ago sorted ascending by time.
Returns Flowable that emits list of sleep events filtered by events for specified period sorted ascending by time.
Returns Flowable that emits container with sleep recommendations.
Returns Flowable that emits list of sleeps for days daysBack
ago sorted ascending by time.
Returns Flowable that emits container with sleep summary for day daysBack
ago.