Android Jetpack: LiveData

author Android Developers   9 мес. назад
28,414 views

502 Like   19 Dislike

#3.3 Android LiveData Tutorial : Jetpack Tutorial : Live Data with Demo: Android Architecture

Access 7000+ courses for 60 days FREE: https://pluralsight.pxf.io/c/1291657/424552/7490 In this video, you will learn another Architecture component i.e. LiveData, what it is and how it works. You will see how this observable data class works efficiently with ViewModel. After the graphical representation, you will see the demo for everything included. Source code files: https://bit.ly/2xBaSLL Previous Video: https://youtu.be/V-fQn0z4Y_0 Next Video: https://youtu.be/OhCH75EVZgU Check out my website: ➤ https://bit.ly/smartherd Donate and support us [Only if you think our courses are better than Udemy or Udacity] ➤ Patreon: https://bit.ly/patreon-donate ➤ Paypal/Payoneer: sriyank123@gmail.com ➤ UPI (only for India): smartherd@okaxis Programming courses: ➤ Ruby Programming: https://bit.ly/smyt-r ➤ Dart Programming: https://bit.ly/smyt-d ➤ Kotlin Programming: https://bit.ly/smyt-k ➤ Java Programming: https://bit.ly/smyt-j Flutter course: ➤ Flutter App Development: https://bit.ly/2Rg7EFR Android courses: ➤ Android using Kotlin: https://bit.ly/smyt-ka ➤ Android using Java: https://bit.ly/smyt-ja ➤ Android Material Design: https://bit.ly/2SMJqU6 ➤ Android Jetpack Architecture: https://bit.ly/yt-j ➤ Android Multiple Screen Support: https://bit.ly/smyt-mss ➤ Android Retrofit: https://bit.ly/2Ee6GHn More programming courses: ➤ https://bit.ly/smy-list Follow us on Facebook: https://bit.ly/smartherd-facebook Twitter: https://bit.ly/smartherd-twitter Github: https://bit.ly/smartherd-github ---- Thank you for your love and support ----

How to Kotlin - from the Lead Kotlin Language Designer (Google I/O '18)

Kotlin is similar to the Java programming language, so it's natural that your Kotlin code looks very much like Java code when you are first start to use the language. While this is fine to begin with, you're probably not taking full advantage of all the language benefits. In this session, the lead Kotlin language designer will show you how you can write more idiomatic Kotlin, what the benefits are, and help you discover some of the most powerful yet lesser known features of Kotlin. Rate this session by signing-in on the I/O website here → https://goo.gl/rcxeHQ Watch more Android sessions from I/O '18 here → https://goo.gl/R9L42F See all the sessions from Google I/O '18 here → https://goo.gl/q1Tr8x Subscribe to the Android Developers channel → http://goo.gl/GEh1ds #io18

Build an App with Architecture Components (GDD India '17)

In this ILT session Lyla Fujiwara will teach you how to build an app from scratch with Architecture Components. Architecture Components: https://goo.gl/hB2j75 Codelab: https://goo.gl/vti7E9 More from Lyla Fujiwara at GDD India: Building an Android Instant App (GDD India '17): https://goo.gl/vmJKSQ Check out the ‘All Sessions’ playlist for the rest of the talks that were given at GDD India ’17: https://goo.gl/WQJ521 Visit the GDD India site: https://goo.gl/VH2ktr Subscribe to the Google Developers India channel: https://goo.gl/KhLwu2 For more updates, follow us at: https://twitter.com/GoogleDevsIN

What are Geofences? - All about Geofencing in 5 min

Geofences are virtual borders around a physical location that can be used to trigger events when a user enters or exists the region. This video answers the most commonly asked questions about geofencing, how it works, accuracy, and viable use cases. Check out are website for more information: https://proximi.io/geofence-complete-guide-geofencing/ Sign up for a free proximi.io account to start using the platform and mobile SDK: https://proximi.io/pricing/

LiveData is part of the Lifecycle library which was designed to help you solve common Android Lifecycle challenges and to make your apps more maintainable and testable.

LiveData is a lifecycle-aware observable. LiveData makes it easy to keep what's showing on screen in sync with the data. Benefits include:

* Lifecycle awareness: LiveData works well with the android lifecycle by only sending updates to UI components that are on screen and automatically removing listeners when a UI component is destroyed.
* Can be returned by Room, to learn more about Room → https://goo.gl/hWAq6R
* Reactive UIs with ViewModel and Data Binding
* Includes basic transformations map and switchMap and MediatorLiveData

LiveData is usually created in a ViewModel class → https://goo.gl/f3gTQx]

The Lifecycle library includes other classes that LiveData works with, including Lifecycle, LifecycleOwner and LifecycleObservable. To learn more about the Lifecycle library, check out → https://goo.gl/pouGCk

Gradle dependencies → https://goo.gl/xD4evT

Also take a look:

Room with a View Codelab [LiveData, ViewModel, Room and the architectural guidance] → http://bit.ly/2FS6YQD
Exposing error and loading state via LiveData → https://goo.gl/fjwccG
ViewModels and LiveData - Patterns and Antipatterns → https://goo.gl/1t3tmL
LiveData with SnackBar, Navigation and other events (the SingleLiveEvent case) → http://bit.ly/2rsmwGl
Subclassing LiveData → https://goo.gl/53Qq52
Using LifecycleObserver → https://goo.gl/e73zTc
Lifecycle codelab → https://goo.gl/OBkIfC
Guide to app architecture → https://goo.gl/tfae2D
Data Binding docs → http://bit.ly/2IjFicG

Watch more Android Jetpack videos here → https://goo.gl/kw8LPv

Subscribe to the Android Developers channel here → https://goo.gl/vLYDU

#AndroidJetpack #jetpack #featured

Comments for video: