![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
kotlin
X-CLK
这个作者很懒,什么都没留下…
展开
-
错误:Module was compiled with an incompatible version of Kotlin. The binary version of its metadata
kotlin编译错误原创 2022-06-15 02:00:29 · 2460 阅读 · 0 评论 -
kotlin重写方法-open关键字
kotlin的类和方法都要加上open关键字,java的方法要加上publickotlin主线程里面定义调用:val sas: ShareBookcaseClient = object: ShareBookcaseClient(""){ override fun policies_qrcode(jsCmd: JSONObject) { }}原创 2021-04-17 09:41:03 · 182 阅读 · 0 评论 -
kotlin中给线程传递需要被调用的函数方法
在线程中调用被传进去的函数,实现在线程文件中调用其它文件里定义的函数//定义线程类internal class ImageSaver( private val image: Image, private val showDetails: (arg:ByteArray) -> Unit //定义需要被调用的函数) : Runnable { override fun run() { val buffer = image.planes[0]....原创 2021-02-22 21:32:19 · 382 阅读 · 1 评论