Kotlin 60秒后停止录音

时间:2017-12-11 20:00:36

标签: android android-studio kotlin

我在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

0 个答案:

没有答案
相关问题