B4X FEED Raise events to a different module in Java

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Raise events to a different module in Java است. این موضوع تا کنون 68 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Raise events to a different module in Java
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
68
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hi all, it is possibile to raise an event in different module than a calling module ?

I search to explain better, I wrote a class in java that add a WebChromeClient to a webview and add some funtionalities (as main goal a simple JS console).
Next I compiled this class to a B4A library, created xml and jar files and put in B4A Addictional libraries.

After this I started a new B4A project, then created a class that manage UI (for a JS console), this class use a WebChromeClient class to receive callbacks,
then send these to the Main.

When all worked I've compiled together as library directly from B4A IDE (Compile as library).

Substantially I have this:
Main > JSConsole Class > WebChromeClient

The main initialize the JSConsole class and this class initialize and use a WebChromeClient, the class JSConsole in the middle acts as bridge from the WebChromeClient and the Main.

In a WebChromeClient I actually use onConsoleMessage event to trap consoles messages, then I use RaiseEvent...



 

عقب
بالا