deboerr New Member Jul 10, 2022 #1 Greetings all ... B4A noob here. Is there a simple PubSub event library for B4A which I can use for global async communication between classes or activities. A library that includes a couple of methods like ON (or LISTEN) and EMIT eg - <Object>.ON("START_IMPORT", Callback_Sub) - <Object>.EMIT("START_IMPORT", Data_Passed_to_Each_Listener) Sorry if it's a stupid question. cheers
Greetings all ... B4A noob here. Is there a simple PubSub event library for B4A which I can use for global async communication between classes or activities. A library that includes a couple of methods like ON (or LISTEN) and EMIT eg - <Object>.ON("START_IMPORT", Callback_Sub) - <Object>.EMIT("START_IMPORT", Data_Passed_to_Each_Listener) Sorry if it's a stupid question. cheers
Erel B4X founder Staff member Licensed User Longtime User Jul 10, 2022 #2 Don't use activities and everything will be simpler. Switch to B4XPages. It is not a stupid question at all. I don't think that anyone has created such library, but it should be quite simple to implement using CallSub / CallSubDelayed. Upvote 0
Don't use activities and everything will be simpler. Switch to B4XPages. It is not a stupid question at all. I don't think that anyone has created such library, but it should be quite simple to implement using CallSub / CallSubDelayed.