healbesdk / com.healbe.healbesdk.business_api.healthdata / HealthData / getRemEpisodes

getRemEpisodes

abstract fun getRemEpisodes(nightsBack: Int): Flowable<List<RemEpisode>>

Returns Flowable that emits list of episodes of rem sleep for night nightsBack ago.

Night starts at 21 o'clock.

For example if current time is June 2 21:00 than 1 nightsBack will return sleep from June 1 21:00 to June 2 12:00.

But if current time is June 2 20:00 than 1 nightsBack will return sleep from May 31 21:00 to June 1 12:00.

Parameters

nightsBack - for how many days ago in relation to today information is needed

Return
Flowable that emits list of episodes of rem sleep for night nightsBack ago

See Also

RemEpisode

abstract fun getRemEpisodes(since: Long): Flowable<List<RemEpisode>>

Returns Flowable that emits list of episodes of rem sleep since specified time.

Parameters

since - minimum timestamp of episodes of rem sleep

Return
Flowable that emits list of episodes of rem sleep since specified time

See Also

RemEpisode