Unlike a regular observable, LiveData is lifecycle-aware, meaning it respects the lifecycle of other app components, such as activities, fragments, or services. LiveData: LiveData is an observable data holder class. Its concept is to separate data presentation logicįrom business logic by moving it into particular class for a clear distinction. MVVM: Model-View-ViewModel (i.e MVVM) is a template of a client application architecture, proposed by John Gossman as an alternative to MVC and MVP patterns when using Data Binding technology. What is MVVM, LiveData, ViewModel, Model, Repository?Īnswer: Let's see what are the important concepts in MVVM.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |