I am running into issues trying to take a function as a parameter in a binding adapter using Kotlin/Android databinding. This example code throws e: error: cannot generate
In the Event Handling section I came across this line:
In Listener Bindings, only your return value must match the expected return value of the listener (unless it is expecting void)
For more about error :
cannot generate view binders java.lang.StackOverflowError
read this article. hope it will help you!!