B4X FEED How to update WebView from class

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

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: How to update WebView from class است. این موضوع تا کنون 28 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع How to update WebView from class
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
28
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
I have a class that needs to trigger a webview to refresh, when it recieves input from a service that monitors incoming sms.
In c++ I would pass a pointer to the webview into the class's sub. How do I do that in b4a? I have searched forums and don't see anything, but I might be using the wrong vocabulary.
The class can't see "Webview1" as it is part of the main Activity and doesn't exist to the compliler yet.
If I can't update the activity's webview from a class, and instead need to declare a webview inside the class, do I just set it's parent and attributes in Activity load to make it show up?
This class so far doesn't have any UI components. It triggers from a service that monitors incoming sms. I need it to be able to run in the background and not be put to sleep, and I read somewhere on the forum here that is best to keep ui elements out of classes and background services.
Thank you so much! Sorry if this isn't formatted the best I've been searching the forums...



 

عقب
بالا