Slide 1

Slide 1 text

An Android Event Bus Otto

Slide 2

Slide 2 text

About me Lucas Albuquerque Mobile / Backend Developer @ M4U Contacts E-mail: [email protected] Linkedin: linkedin.com/in/lucasalbuquerque Github: github.com/lalbuquerque SlideShare: slideshare.net/olucasalbuquerque

Slide 3

Slide 3 text

The problem

Slide 4

Slide 4 text

The problem

Slide 5

Slide 5 text

A light at the end of the tunnel…

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

Setting up

Slide 8

Slide 8 text

Setting up

Slide 9

Slide 9 text

Setting up

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

SUB PUB EventBus.publish(new MyEvent()); @EventSubscriber(eventClass = MyEvent.class)

Slide 12

Slide 12 text

But how is it all with Otto?

Slide 13

Slide 13 text

SUB:

Slide 14

Slide 14 text

PUB:

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

Producers @Produce
 public Beyonce produce() { return new Beyonce(); }

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

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/