Kotlin笔记

1.创建接口对象

    private val conn = object : ServiceConnection {
        override fun onServiceDisconnected(p0: ComponentName?) {
            TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
        }

        override fun onServiceConnected(p0: ComponentName?, p1: IBinder?) {
            TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
        }
    }

2.空处理


你可能感兴趣的:(Kotlin笔记)