EventBus icon indicating copy to clipboard operation
EventBus copied to clipboard

Post to all subscribers

Open ghost opened this issue 8 years ago • 2 comments

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.

ghost avatar May 04 '17 12:05 ghost

I'd suggest you make a common "empty" interface "Event", which all other Events implement?

Aeefire avatar May 05 '17 12:05 Aeefire

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

greenrobot-team avatar May 08 '17 09:05 greenrobot-team