I want to pass an interface as a parameter:
class Test { fun main() { test({})
In Java, I can use an anonymous function like test(new Handler() { .......... }) , but I cannot do this in Kotlin. Does anyone know how to do this?
android lambda interface kotlin
maphongba008
source share