Kotlin笔记

2017-07-31  本文已影响0人  Mutoou

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.空处理


上一篇 下一篇

猜你喜欢

热点阅读