fromBounds

fun fromBounds(startTime: Int, endTime: Int)

Set duration and start time for "do not disturb" period.

Parameters

startTime

start time user set in minutes

endTime

end time user set in minutes

Throws

when startTime or endTime not in 0, 1440