~/talk

Building Reactive Views With the Architecture Components

Talkat Android Summit 2018 · on Thursday, 2018-08-16· [android, reactive-programming]
speakerdeck:swolfand
slides:none on file

Claims that existing MVP login/onboarding code becomes reactive and lifecycle-safe by swapping presenter callbacks for a ViewModel that emits a sealed action/result stream. Uses Kotlin sealed classes for sealed action/result classes, RxJava operators like startWith and onErrorReturn to fold progress and errors into the stream, and Android Architecture Components ViewModel to remove attach/detach and retain state. Built this for Slack’s sign‑in flow, it reduces callback bloat, stays testable, and actually works in production.

AI-written summary · about

  1. 0:00Intro
  2. 0:40Overview
  3. 1:22Onboarding
  4. 1:50Challenges
  5. 2:11Mockups
  6. 6:34Fear of alienating users
  7. 6:58Event classes
  8. 7:44Presenter classes
  9. 8:57Nested hierarchies
  10. 9:52Old MVP
  11. 12:28MVP Argument
  12. 13:18The Problem
  13. 14:42View Models
  14. 15:15Provider Factory
  15. 16:25ViewModel
  16. 17:24Testable
  17. 17:51Outro
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.