Kotlin SAM到Lambda的转换不起作用

时间:2019-07-06 06:48:30

标签: android kotlin

这是我的初始回调:

geoFirestore.getAtLocation(initialLocation!!, 2.0, object : GeoFirestore.SingleGeoQueryDataEventCallback{
    override fun onComplete(documentSnapshots: List<DocumentSnapshot>?, exception: Exception?) {

    }
})

当我转换为lambda时,出现错误:

enter image description here

这是为什么?

0 个答案:

没有答案