build Count Down Timer
fun buildCountDownTimer( millisInFuture: Long, countDownInterval: Long, onTimerTick: (millisUntilFinished: Long) -> Unit, onTimerFinished: () -> Unit = {}): CountDownTimer
Content copied to clipboard
A utility function that is used to create an instance of CountDownTimer .
Parameters
millis In Future
millis since epoch when timer should stop.
count Down Interval
the interval in millis after which the user receives the callbacks.
on Timer Tick
a lambda that receives an instance of Long indicating the amount of time until finished.
on Timer Finished
an optional lambda the will be executed when the timer finishes.