6 Basic steps: Android LiveData Tutorial in Kotlin

Publicado el: 28 octubre 2018
en el canal de: Jake Macale
1,416
9

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


En esta página del sitio puede ver el video en línea 6 Basic steps: Android LiveData Tutorial in Kotlin de Duración hora minuto segunda en buena calidad , que subió el usuario Jake Macale 28 octubre 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,416 veces y le gustó 9 a los espectadores. Disfruta viendo!