I was testing the listeners on Kotlin but I can't call the correct listener
When compiled to Kotlin, I only have access to tabBar.onFoldingItemClickListener which is a variable and not a method I can call.
This image shows that I'm acessing an variable and not an method and that is the lib implementation, proving it is an variable.
And here are the two methods I can access from tabBar instance.
Also, if I decompile the Java code (here), I can see setOnFoldingItemClickListener and setOnMainButtonClickListener, which receive the Listener as parameter.
Hello guys!
I was testing the listeners on Kotlin but I can't call the correct listener When compiled to Kotlin, I only have access to
tabBar.onFoldingItemClickListener
which is a variable and not a method I can call.This image shows that I'm acessing an variable and not an method and that is the lib implementation, proving it is an variable. And here are the two methods I can access from tabBar instance.
Also, if I decompile the Java code (here), I can see
setOnFoldingItemClickListener
andsetOnMainButtonClickListener
, which receive the Listener as parameter.It works with Java but I can't use it with Kotlin
Am I doing anything wrong?
Thanks!