EventBus serves as the communication between components, and EventBus Components
1. Why use EventBus?
Generally, the following mode is used for communication between different activty and other components:
Is to define an interface, you need to pay attention to the event to implement this interface. Then, register or cancel the controls that interest the event when the event is triggered, as described in the following article:
Decouples communication between Android App components in Event Bus mode
This problem is also obvious, that is, the coupling between different components is often severe, and more interfaces are difficult to maintain, in this way, the EventBus mode is used to solve the communication between components with low coupling.
2. EventBus class library Introduction
EventBus is a release/bus mode optimized Android system library.