In kotlin, I have a function like this:
fun show(string: String, onClose: () -> Unit) {
// do somthing with onClose()
}
and call this function:
Utils.show("abc") {
Log.d("show", "abc")
}
And I want to know how to call show() function in a Java class, I can't put onClose function as param in java
Thank you.