Created
November 5, 2014 12:58
-
-
Save geftimov/5c2caab9cf5c1d061507 to your computer and use it in GitHub Desktop.
Otto config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in build gradle | |
compile 'com.squareup:otto:1.3.5' | |
//in dagger module | |
@Provides | |
@Singleton | |
Bus provideBus() { | |
return new Bus(); | |
} | |
//usage | |
bust.post(event) | |
@Subscribe | |
public void eventGot(event) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment