getStressTimeMinutes

abstract fun getStressTimeMinutes(level: StressLevel, from: Long, to: Long): Flowable<Int>

Returns Flowable that emits duration in minutes of specified stress level for period from from to to.

Return

Flowable that emits duration in minutes of specified stress level

See also

Parameters

level

stress level

from

minimum UNIX-timestamp of stress data

to

maximum UNIX-timestamp of stress data


abstract fun getStressTimeMinutes(level: StressLevel, daysBack: Int): Flowable<Int>

Returns Flowable that emits duration in minutes of specified stress level for day daysBack ago.

Return

Flowable that emits duration in minutes of specified stress level for day daysBack ago

See also

Parameters

level

stress level

daysBack

for how many days ago in relation to today information is needed (0 for today)