Day70 of #100DaysOfCode

Kushagra Kesav
1 min readApr 17, 2022

--

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

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 the LiveData object changes.
  • LiveData is lifecycle-aware. When we attach an observer to the LiveData, the observer is associated with a LifecycleOwner (usually an activity or fragment). The LiveData only updates observers that are in an active lifecycle state such as STARTED or RESUMED.
  • 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 ;)

--

--

Kushagra Kesav
Kushagra Kesav

Written by Kushagra Kesav

Developer Relations | Communities | Software Engineering | https://www.linkedin.com/in/kushagrakesav

No responses yet