Conference for Kotliners 2020
2020-06-05 • Budapest, Hungary • Event page
Resources
Talk details
Handling View State and Events with RainbowCake
RainbowCake is an architectural framework built on top of the best & latest of Jetpack and Kotlin. One of its core features is its view state and view event handling mechanism, which is somewhere between MVVM and MVI, and is powered by LiveData. In this talk, we’ll first look at the client side API of the framework, and the design decisions that went into it. Then, we’ll dive into how all of this is implemented under the hood by customizing LiveData. While the talk discusses this specific framework, the ideas in it are universal and can be used independently in any project.
Resources:
- rainbowcake.dev, the official website
- rainbowcake on GitHub, library code, samples, starter projects
- [0] AutSoft/hwsw-2018-kotlin-jetpack-workshop
- [1] Thoughts about State Handling on Android
- [2] Designing and Working with Single View States on Android
- [3]
LiveData#distinct
- [4]
ClairvoyantLiveData
andClairvoyantLiveDataTest
- [5] ViewModel scopes :: RainbowCake
- [6] Render mechanism - Lifecycles :: RainbowCake
- [7]
SingleShotLiveData
andSingleShotLiveDataTest
- [8]
QueuedSingleShotLiveData
andQueuedSingleShotLiveDataTest
- [9]
ActiveOnlySingleShotLiveData
andActiveOnlySingleShotLiveDataTest