6 Basic steps: Android LiveData Tutorial in Kotlin

Published: 28 October 2018
on channel: 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


On this page of the site you can watch the video online 6 Basic steps: Android LiveData Tutorial in Kotlin with a duration of hours minute second in good quality, which was uploaded by the user Jake Macale 28 October 2018, share the link with friends and acquaintances, this video has already been watched 1,416 times on youtube and it was liked by 9 viewers. Enjoy your viewing!