Issue with higher order function as a binding adapter

后端 未结 4 735
野的像风
野的像风 2021-02-07 10:09

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

4条回答
  •  萌比男神i
    2021-02-07 10:35

    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!!

提交回复
热议问题