Android Jetpack: LiveData

author Android Developers   9 мес. назад

502 Like   19 Dislike

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

Access 7000+ courses for 60 days FREE: 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: Previous Video: Next Video: Check out my website: ➤ Donate and support us [Only if you think our courses are better than Udemy or Udacity] ➤ Patreon: ➤ Paypal/Payoneer: ➤ UPI (only for India): smartherd@okaxis Programming courses: ➤ Ruby Programming: ➤ Dart Programming: ➤ Kotlin Programming: ➤ Java Programming: Flutter course: ➤ Flutter App Development: Android courses: ➤ Android using Kotlin: ➤ Android using Java: ➤ Android Material Design: ➤ Android Jetpack Architecture: ➤ Android Multiple Screen Support: ➤ Android Retrofit: More programming courses: ➤ Follow us on Facebook: Twitter: 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 → Watch more Android sessions from I/O '18 here → See all the sessions from Google I/O '18 here → Subscribe to the Android Developers channel → #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: Codelab: More from Lyla Fujiwara at GDD India: Building an Android Instant App (GDD India '17): Check out the ‘All Sessions’ playlist for the rest of the talks that were given at GDD India ’17: Visit the GDD India site: Subscribe to the Google Developers India channel: For more updates, follow us at:

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: Sign up for a free account to start using the platform and mobile SDK:

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 →
* Reactive UIs with ViewModel and Data Binding
* Includes basic transformations map and switchMap and MediatorLiveData

LiveData is usually created in a ViewModel class →]

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

Gradle dependencies →

Also take a look:

Room with a View Codelab [LiveData, ViewModel, Room and the architectural guidance] →
Exposing error and loading state via LiveData →
ViewModels and LiveData - Patterns and Antipatterns →
LiveData with SnackBar, Navigation and other events (the SingleLiveEvent case) →
Subclassing LiveData →
Using LifecycleObserver →
Lifecycle codelab →
Guide to app architecture →
Data Binding docs →

Watch more Android Jetpack videos here →

Subscribe to the Android Developers channel here →

#AndroidJetpack #jetpack #featured

Comments for video: