When to use RxJava in Android and when to use LiveData from Android Architectural Components?

后端 未结 9 1375
野趣味
野趣味 2020-12-07 07:06

I am not getting the reason to use RxJava in Android and LiveData from Android Architectural Components.It would be really helpful if the usecases and differences between th

9条回答
  •  悲哀的现实
    2020-12-07 07:40

    • LiveData partially equals to Rx Subject or SharedRxObservable

    • LiveData manages lifecycle of subscription but Rx Subject subscription should be created and disposed manually

    • LiveData doesn't have termination state but Rx Subject has OnError and OnCompleted

提交回复
热议问题