Android LiveData is part of Android Jetpack's Architecture component.
#jetpack #milestonetuts
Android Jetpack:
https://developer.android.com/jetpack
Android LiveData Documentation:
https://developer.android.com/topic/l...
Gradle dependencies
https://goo.gl/xD4evT
Android Developer's website statement:
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.
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
Auf dieser Seite können Sie das Online-Video 6 Basic steps: Android LiveData Tutorial in Kotlin mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Jake Macale 28 Oktober 2018 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,416 Mal angesehen und es wurde von 9 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!