getNoDisturbTime

Gets the current do-not-disturb time settings.

Returns the currently configured notification quiet hours, including start time, duration, level, and time zone.

NCEngine.getNoDisturbTime { info, error ->
if (error == null && info != null) {
println("Quiet hours start at: ${info.startTime}, duration: ${info.spanMinutes} min")
}
}

Parameters

handler

Callback returning the do-not-disturb time info on success