Kotlin 60秒后停止录音
我在kotlin最多60秒内尝试一个记录
object : CountDownTimer(60000,1000) { override fun onFinish(){ timeText.text = "Time's Fİnish!" handler.removeCallbacks(runnbale) for (button2 in runnable ){ button2.stop() } } }
我得到对象和可运行的错误
Error:(70, 13) Object is not abstract and does not implement abstract base class member public abstract fun onTick(p0: Long): Unit defined in android.os.CountDownTimer Error:(75, 37) Unresolved reference: runnable