Effective Use of ViewModel with LiveData Builder & Transformations on Android
When we think about MVVM, the first thing that comes to our mind about the job of ViewModel
is to fetch data from a model layer. I did some research on how to make the best use of ViewModel
and encountered Architecture
related classes such as Transformations
and LiveData builder
. Today, let me introduce some use cases of them with the app that calls TwitterAPI.