Day70 of #100DaysOfCode
1 min readApr 17, 2022
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
https://developer.android.com/courses/android-basics-kotlin/course
LiveData
is an observable data holder class that is lifecycle-aware.
Some characteristics of LiveData
:
LiveData
holds data;LiveData
is a wrapper that can be used with any type of data.LiveData
is observable, which means that an observer is notified when the data held by theLiveData
object changes.LiveData
is lifecycle-aware. When we attach an observer to theLiveData
, the observer is associated with aLifecycleOwner
(usually an activity or fragment). TheLiveData
only updates observers that are in an active lifecycle state such asSTARTED
orRESUMED
.- 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 ;)