EventBus
EventBus copied to clipboard
Post to all subscribers
I want to dispatch a common function on all listeners registered to eventBus. I dont want to go manually on each function of dispatch event. is there a common way i can implement that.
I'd suggest you make a common "empty" interface "Event", which all other Events implement?
This is kind of the anti-thesis of what EventBus does (notify everybody vs notify only subscribers). You should specify an additional event and post/subscribe to that. -ut