LiveData Explained - Android Architecture Component | Tutorial

Описание к видео LiveData Explained - Android Architecture Component | Tutorial

🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN
https://stevdza-san.com

🐱‍👤 Wanna become a member? Join!
   / @stevdzasan  

📸 Instagram
  / stevdza_san  


In this video I'm going to introduce you with LiveData. LiveData is a part of Android Architecture components like ViewModel for example. And if you haven't watched my video about ViewModel I highly recommend you to do that before you continue, because in this video we are going to use LiveData along with ViewModel.

ViewModel:    • ViewModel Explained - Android Archite...  

LiveData is an observable data holder class. Unlike a regular observable, LiveData is lifecycle-aware, meaning it respects the lifecycle of other app components, such as activities, fragments, or services. This awareness ensures LiveData only updates app component observers that are in an active lifecycle state

Dependencies used in this video:
// Lifecycle components
implementation "android.arch.lifecycle:extensions:1.1.1"
annotationProcessor "android.arch.lifecycle:compiler:1.1.1"
//ViewModel
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"

Timestamps
0:00 - Introducing with LiveData
2:15 - Practical Example - Countdown Timer
10:35 - Conclusion

Комментарии

Информация по комментариям в разработке