LiveData
LiveData - LiveData는 구독 시 Android Lifecycle을 따르도록 구현되어 있다. - LiveData는 항상 최신 데이터만을 보증한다. 이유는 위에서 보았던 setValue를 보면 알 수 있다. setValue는 어떠한 처리도 없는 단순 변수이다. 변수는 항상 마지막 데이터만을 들고 있을 수 있다. - LiveData는 항상 MainThread에서 사용할 값을 보증한다. (setValue를 하든 postValue를 하든) 0. 설정 def lifecycle_version = "2.3.0" // ViewModel implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" // LiveData imple..