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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Lucas Albuquerque
December 05, 2015
Technology
150
0
Share
Otto - An Android Event Bus
1º Ciclo de Palestras 2015 @ M4U
Lucas Albuquerque
December 05, 2015
More Decks by Lucas Albuquerque
See All by Lucas Albuquerque
Functional Programming on Android: is it possible?
lalbuquerque
0
79
Getting started with Kotlin and Android
lalbuquerque
1
180
DARK : dagger2-anko-rx-kotlin
lalbuquerque
1
450
TDC 2015 - Testes de Unidade com Robolectric
lalbuquerque
0
46
Other Decks in Technology
See All in Technology
Harnessing the Power of Mocks and Stubs in PHPUnit / #laravellivejp
asumikam
0
710
AI活用の格差をなくす:チーム全体のAI開発生産性を底上げする方法
moongift
PRO
1
120
DI コンテナ自動生成ツールを実装してみた / intro-autodi
uhzz
0
870
Datadog 認定試験の概要と対策
uechishingo
0
120
Kiro CLI v2.0.0がやってきた!
kentapapa
0
200
Strands Agents超入門
kintotechdev
1
130
シンデレラなんかになりたくない!ガラスの靴が割れた時代にどう歩く?
nomizone
0
210
AIが変えた"品質の守り方"
kkakizaki
13
5k
OpenID Connectによるサービス間連携
takesection
0
130
Javaコミュニティをもっと楽しむための9箇条
takasyou
0
300
食べログのサーキットブレーカー導入を振り返って
atpons
1
140
Cloud Run のアップデート 触ってみる&紹介
gre212
0
180
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
340
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
360
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.1k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
250
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.1k
Evolving SEO for Evolving Search Engines
ryanjones
0
210
Tell your own story through comics
letsgokoyo
1
930
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
550
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.7k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
410
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
210
Game over? The fight for quality and originality in the time of robots
wayneb77
1
180
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/