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

后端 未结 9 1377
野趣味
野趣味 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 07:26

    LiveData as a data holder thing and nothing else. We can also say LiveData is Lifecycle aware consumer. LiveData is strongly recommended to know the concept of lifecycle and the relative objects LifeCycleOwner/LifeCycle, you get transformation and stream capabilities for your business logic and lifecycle aware operation for your UI.

    Rx is powerful tool that enables to solve of problem in an elegant declarative style. It handles business side options or Service Api operations

提交回复
热议问题