Java Question Call a B4A Sub from Java in a synchronized way - Erel (first post)    May 08, 2017   (1 reaction) No.
ba.raiseEvent is synchronously (you can see that it returns a value). B4A Question Calling sub from Java in "blocking" mode - agraham (first post)    Jun 08, 2022 Not as far as I can see from the code. ba.raiseEvent returns the value, as an Object, returned from the event sub. Java Question Get the PendingIntent result from Java Object code - DonManfred (first post)    Mar 06, 2018 ba.raiseEvent(null, eventName + "_syncproc", handle, channel, data, user) Java Question raiseEvent or raiseEventFromDifferentThread - mindful    Sep 05, 2017 import java.util.Comparator;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.CheckForReinitialize;
import anywheresoftware.b4a.BA.Events;
import anywheresoftware.b4a.BA.Hide;
import anywheresoftware.b4a.BA.ShortName;
@ShortName("ComparatorObject")
@Events(values={"Compare(Object1 As Java Question Returning Value on BA.RaiseEvent method - Erel (first post)    Aug 30, 2018   (1 reaction) Yes. ba.raiseEvent returns the value returned from the event sub.
You should however make sure that the value is not null before you cast it to an int. It will be null if the event cannot be raised for some reason. Java Question how I can caller callsub function from Java library? - Erel (first post)    Jul 29, 2018 Use ba.raiseEvent or ba.raiseEventFromUI. All other suggestions are wrong. B4J Question [Solved] Problem wrapping 'beads project' library - Erel (first post)    Nov 16, 2017   (1 reaction) You can call ba.raiseEventFromDifferentThread. However it doesn't return any value.
Example of using CountDownLatch to return a result: https://www.b4x.-or-raiseeventfromdifferentthread.83574/#post-529901 Java Question ba.raiseEvent pass view a parameter - apty    Apr 08, 2018 When designing java library, is it possible to pass a view as parameter for example
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.
Ple Java Question BA.raiseEvent and bass library - Erel (first post)    Oct 16, 2016 ba.raiseEvent is not asynchronous and you can use it to return a value from B4A code. However you cannot use it if the event is raised from a different thread. Java Question Plea for help with Java's lack of delegates - agraham (first post)    Mar 04, 2019   (1 reaction) Great minds ...! :)
Already changed it to
ba.raiseEvent(this, eventName + "_ondraw", cw);
Which works with
Sub TouchImageView1_OnDraw(can As Canvas)
Dim s As ScaleImageView = Sender
...
End Sub Page: 1   2   3   4   5   6   7   Powered by ColBERT |