override fun onChronometerTick(chronometer: Chronometer?) { // Do whatever when the chronometer achieves some time: when (chronometer.text) { "30:00" -> {...} // "30:00:0" if the Chronometer displays tenths of seconds "45:00" -> {...} "01:00:00" -> {...} } }
private fun firstChronometerTicked() { // Do whatever when the chronometer achieves some time: when (firstChronometer.text) { "30:00" -> {...} "45:00" -> {...} "01:00:00" -> {...} } }
@ Call all these functions from onChronometerTick():