Skip to content

LiveData

Miguel Panelo edited this page Feb 10, 2019 · 2 revisions

States can also be subscribed using LiveData

kaskade.stateLiveData()

It has a Dam counterpart DamLiveData

kaskade.stateDamLiveData()

In Android, always consider using LiveData as it has lifecycle support to avoid memory leaks.

Clone this wiki locally