Java Question ba.raiseEvent pass view a parameter

apty

Active Member
Licensed User
Longtime User
When designing java library, is it possible to pass a view as parameter for example

B4X:
public void onClick(View v) {
ba.raiseEvent(ba, eventName + "_click",value1,v);
            }

I have tried but i get an error :

java.lang.Exception: Sub btnl_click signature does not match expected signature.

Please assist.
 

apty

Active Member
Licensed User
Longtime User
B4A code:
B4X:
Sub btnl_click(tt As String, v As View)
   
    Msgbox(v.Tag,bb)
end sub

It only works with string values. If i pass a view, it gives an error
 
Top