setDuration

fun setDuration(timeInMillis: Int)

Sets the time in milliseconds to count down. Calls to this method are ignored if the countdown timer is already running.

Equivalent to providing the android:duration attribute in the layout xml file.