Otto is a Guava-based event bus library for Android developed by Square that simplifies inter-component communication. Instead of each component registering with multiple listener interfaces (location manager, auth, sync, etc.), components register once with the bus and use @Subscribe annotations to receive events. This decouples components from each other, reduces dependency graphs, and makes testing easier by allowing arbitrary events to be posted to the bus.

4m read timeFrom developer.squareup.com
Post cover image
Table of contents
The SituationThe ProblemThe SolutionOtto for Android
2 Impressions