otto - an android event bus

Post on 12-Jan-2017

368 Views

Category:

Software

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

An Android Event Bus

Otto

About me

Lucas AlbuquerqueMobile / Backend Developer @ M4U

ContactsE-mail: lucas.albuquerque12@gmail.com

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/

top related