Otto - An Android Event Bus
-
Upload
lucas-albuquerque -
Category
Software
-
view
368 -
download
0
Transcript of Otto - An Android Event Bus
An Android Event Bus
Otto
About me
Lucas AlbuquerqueMobile / Backend Developer @ M4U
ContactsE-mail: [email protected]
Linkedin: linkedin.com/in/lucasalbuquerque Github: github.com/lalbuquerque
SlideShare: slideshare.net/olucasalbuquerque
The problem
The problem
A light at the end of the tunnel…
Setting up
Setting up
Setting up
SUBPUB
EventBus.publish(new MyEvent());@EventSubscriber(eventClass = MyEvent.class)
But how is it all with Otto?
SUB:
PUB:
Producers
@Producepublic Beyonce produce() {
return new Beyonce(); }
References:
http://square.github.io/otto/
https://asherson.wordpress.com/2013/02/20/otto-event-bus-for-android/
http://www.vogella.com/tutorials/JavaLibrary-EventBusOtto/article.html
https://corner.squareup.com/2012/07/otto.html
https://github.com/square/otto/issues/27
http://nick.perfectedz.com/otto-event-system/