Day70 of #100DaysOfCode
Hii folks 🙌
Today I will be continuing the same pathway in which we’ll learn and use the LiveData with ViewModel.
Unit 3: Navigation
Pathway 2: Architecture componentsSource
LiveData is an observable data holder class that is lifecycle-aware.
Some characteristics of
LiveDatais a wrapper that can be used with any type of data.
LiveDatais observable, which means that an observer is notified when the data held by the
LiveDatais lifecycle-aware. When we attach an observer to the
LiveData, the observer is associated with a
LifecycleOwner(usually an activity or fragment). The
LiveDataonly updates observers that are in an active lifecycle state such as
- Tomorrow we will implement the liveData to the current Scrambled word.
That is all for Day70 ✅
Thanks for reading, See you tomorrow!
If you are reading my #100Days Journey, feel free to drop by ;)