Sign in Go Pro

Android Architecture Components - A Deep Dive

Transformations with MediatorLiveData

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



MediatorLiveData is used when you want to observe another LiveData and react when it changes. It is useful to create custom transformations.
It is quite powerful and it shines when you want to handle the logic of fetching the data from a database or from the web server.

In this lesson, we will look how to use MediatorLiveData and also see a snippet how can we use MediatorLiveData when dealing with database and web server.




Without subtitle

You need to go PRO to post comments.

Lessons in Android Architecture Components - A Deep Dive