Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Otto - An Android Event Bus
Search
Lucas Albuquerque
December 05, 2015
Technology
0
120
Otto - An Android Event Bus
1º Ciclo de Palestras 2015 @ M4U
Lucas Albuquerque
December 05, 2015
Tweet
Share
More Decks by Lucas Albuquerque
See All by Lucas Albuquerque
Functional Programming on Android: is it possible?
lalbuquerque
0
47
Getting started with Kotlin and Android
lalbuquerque
1
160
DARK : dagger2-anko-rx-kotlin
lalbuquerque
1
430
TDC 2015 - Testes de Unidade com Robolectric
lalbuquerque
0
32
Other Decks in Technology
See All in Technology
コードや知識を組み込む / Incorporate Code and knowledge
ks91
PRO
0
150
M&A戦略を支えるデータマネジメント (MIDAS Tech Study #16 GENDA Komiyama)
kommy339
0
100
Handling focus in 2024
tahia910
0
220
成長をサポートするピープルマネジメントのやり方
sioncojp
8
1.1k
On Your Data を超えていく!
hirotomotaguchi
2
750
プロンプトエンジニアリングでがんばらない-Agentic Workflow へ-近藤憲児
kenjikondobai
6
1.2k
Python と Snowflake はズッ友だょ!~ Snowflake の Python 関連機能をふりかえる ~
__allllllllez__
2
140
ゼロから始めるVue.jsコミュニティ貢献 / first-vuejs-community-contribution-link-and-motivation
lmi
1
150
The AI Revolution Will Not Be Monopolized: Behind the scenes
inesmontani
PRO
1
160
One engineer company with Ruby on Rails
rstankov
2
420
Azure Container Apps + Bicep 〜 こんな感じで運用しています
kaz29
3
620
よく聞くけど使ったことないソフトウェアNo.1 KafkaとSnowflake
foursue
4
510
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
21
3.9k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
22
1.6k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
GraphQLとの向き合い方2022年版
quramy
33
12k
Happy Clients
brianwarren
92
6.4k
Atom: Resistance is Futile
akmur
260
25k
Pencils Down: Stop Designing & Start Developing
hursman
117
11k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
20
1.6k
Writing Fast Ruby
sferik
622
60k
Designing for humans not robots
tammielis
248
25k
Optimising Largest Contentful Paint
csswizardry
12
2.4k
How STYLIGHT went responsive
nonsquared
92
4.8k
Transcript
An Android Event Bus Otto
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
The problem
The problem
A light at the end of the tunnel…
None
Setting up
Setting up
Setting up
None
SUB PUB EventBus.publish(new MyEvent()); @EventSubscriber(eventClass = MyEvent.class)
But how is it all with Otto?
SUB:
PUB:
None
Producers @Produce public Beyonce produce() { return new Beyonce(); }
None
None
None
None
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/