Event dispatcher and local dispatch manager: which one is better

My application is highly dependent on local broadcasting; for each activity call, the broadcast registration method is called, so it’s good to move to any event bus.

The two main problems with using Local Broad Manager.

  • Each action requires registration
  • Registration method execution time (about 10 actions recorded)

I think the event bus will improve the overall execution and performance of my application.

+4
source share
3 answers

, , LocalBroadcastManager. - .

+5

afaik, event-bus LocalBroadcastManager:

  • .
    , , LocalBroadcastManager. .
  • .
    1, , .
  • .
  • .
  • .
+4

EventBus

How is EventBus different from Androids BroadcastReceiver / Intent system?

Unlike the Androids BroadcastReceiver And Intent system, EventBus uses standard Java classes as events and offers a more convenient API. EventBus is designed to make much more use of cases where you would not want to go through the troubles of creating intentions, preparing the intention for additional functions, introducing broadcast receivers and extracting additional options again. In addition, EventBus has much lower overhead.

+1
source

All Articles