getCountDownTimer

inline fun getCountDownTimer(millisInFuture: Long, countDownInterval: Long, crossinline onTick: (Long) -> Unit = {}, crossinline onFinish: () -> Unit = {}): CountDownTimer?

Gets CountDownTimer , or null if an exception is encountered.

Since

1.5.0

Parameters

millisInFuture

The number of millis in the future from the call to CountDownTimer.start until the countdown is done and CountDownTimer.onFinish is called.

countDownInterval

The interval along the way to receive CountDownTimer.onTick callbacks.

onTick

Callback fired on regular interval.

onFinish

Callback fired when the time is up.