i find
@Erel's comments regarding raiseEventfromUI a little unclear,
https://www.b4x.com/android/forum/threads/java-ba-raiseeventfromui.18047/#content
but he does state clearly that it returns nothing.
the other raiseEvent() calls can return something, but the call has to be set to receive the return value. in most cases, we simply raise the event and pass something to b4a to process when the event is raised. but if you wanted something back from raiseEvent(), i believe you have to do something like:
boolean retval = ba.raiseEvent(this, "ynexu_onsetkeyboard", someobject);, not simply ba.raiseEvent(this, "ynexu_onsetkeyboard", someobject);
in the latter case you could return whatever you wanted, but the caller isn't expecting anything, so it doesn't wait.
in the former case, the caller waits for the retval from b4a.
this is how you handle a number of webview methods that require action by b4a before proceeding (eg shouldoverrideurl, shouldintercept, geolocation permission, etc).
the b4a event has to return something to the caller (perhaps a simple true/false, perhaps a string, etc)
i thought i had grasped the op's query, but if not, i apologize. i also apologize preemptively for misunderstanding how i've been using raiseevent() all these years. other apologies may be added after lunch.