6 Basic steps: Android LiveData Tutorial in Kotlin

Publicado em: 28 Outubro 2018
no 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


Nesta página do site você pode assistir ao vídeo on-line 6 Basic steps: Android LiveData Tutorial in Kotlin duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Jake Macale 28 Outubro 2018, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,416 vezes e gostou 9 espectadores. Boa visualização!