Java Question Event like this Msg_onMessage(Success As String, example1 As String, example2 As String)

Pendrush

Well-Known Member
Licensed User
Longtime User
In B4a i need to raise event like:
B4X:
Msg_onMessage(Success As String, example1 As String, example2 As String)
What is example Java code to raise event like this?
Java:
ba.raiseEventFromDifferentThread(getObject(), null, 0, eventName + "_onmessage", false, new Object[]{String.valueOf(...)});
???

EDIT:
I have found solution here
Java:
ba.raiseEventFromDifferentThread(getObject(), null, 0, eventName + "_onmessage", false, new Object[]{String.valueOf(str1), String.valueOf(str2), String.valueOf(str3)});
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
B4X:
        ba.raiseEventFromDifferentThread(this, null, 0, eventName + "_onmessage", true, new Object[] {str1, str2, str3});
 

Pendrush

Well-Known Member
Licensed User
Longtime User
I have my focus on Kotlin JS/JVM/Android (I'm starting to be pretty good), still learning Java syntax.
 
Top