Reputation: 6591
My app is heavily depended on Local broadcast ,for every activity invocation am invoking the broadcast registration method so is it good to move to any event bus.
Two primary concerns of using Local broadcast Manager.
I think the event bus will improve overall execution and performance of my app.
Upvotes: 6
Views: 7199
Reputation: 13240
How is EventBus different to Android’s BroadcastReceiver/Intent system?
Unlike Android’s BroadcastReceiver/Intent system, EventBus uses standard Java classes as events and offers a more convenient API. EventBus is intended for a lot more uses cases where you wouldn’t want to go through the hassle of setting up Intents, preparing Intent extras, implementing broadcast receivers, and extracting Intent extras again. Also, EventBus comes with a much lower overhead.
Upvotes: 5
Reputation: 29783
afaik, there are some benefits using event-bus instead of LocalBroadcastManager:
Upvotes: 7
Reputation: 10601
Most event bus libraries provide reflection-based registration which is less efficient than LocalBroadcastManager. The main reason for using the event bus would be coding ease.
Upvotes: 9