androidx.lifecycle:lifecycle-livedata
Official Description: Android Lifecycle LiveData
CommonsWare’s Notes
This artifact, despite its name, does not contain LiveData
. Instead, that
is in the lifecycle-livedata-core
artifact.
Instead, this artifact is the home of MediatorLiveData
and Transformations
.
These are useful for adapting one LiveData
to another. In particular,
Transformations
has map()
and switchMap()
static methods that work akin
to their RxJava counterparts, allowing you to convert (“map”) LiveData
of one type
to another type.
Documentation
Knowledge
- LiveData to the next level with MediatorLiveData and Transformations (2018-12-07)
- Android LiveData Transformation With Example: Map And SwicthMap (2018-07-23)
- MediatorLiveData to the Rescue (2018-07-14)
Versions
- Latest Stable: 2.3.0
- Latest Release Candidate: 2.3.0-rc01
- Latest Beta: 2.3.0-beta01
- Latest Alpha: 2.3.0-alpha07
- 2.3.0
- 2.3.0-rc01
- 2.3.0-beta01
- 2.3.0-alpha07
- 2.3.0-alpha06
- 2.3.0-alpha05
- 2.3.0-alpha04
- 2.3.0-alpha03
- 2.3.0-alpha02
- 2.3.0-alpha01
- 2.2.0
- 2.2.0-rc03
- 2.2.0-rc02
- 2.2.0-rc01
- 2.2.0-beta01
- 2.2.0-alpha05
- 2.2.0-alpha04
- 2.2.0-alpha03
- 2.2.0-alpha02
- 2.2.0-alpha01
- 2.1.0
- 2.1.0-rc01
- 2.1.0-beta01
- 2.1.0-alpha04
- 2.1.0-alpha03
- 2.1.0-alpha02
- 2.1.0-alpha01
- 2.0.0
- 2.0.0-rc01
- 2.0.0-beta01
- 2.0.0-alpha1