class CustomTimer(
private val millisInFuture: Long,
private val countDownInterval: Long,
private val onTick: ((millisUntilFinished: Long) -> Unit)? = null,
private val onFinish: (() -> Unit)? = null,
)
val timer = CustomTimer(0, 0,
onTick = {
// on tick
},
onFinish = {
// on finish
})
val timer = CustomTimer(0, 0,
onTick = {
// on tick
})
val timer = CustomTimer(0, 0,
onFinish = {
// on finish
})