Using subjects in the application

In the preceding section, we learned a lot about Subject but now it is the time to put it to use. In this section, we will use BehaviorSubject to store settings and pass it to the main financial quote retrieval flow.

Additionally, we will utilize the RxPreferences library to retrieve preferences from the SharedPreferences object. In the end, we will plug everything into one reactive flow so that when the settings are updated, the streams will update themselves automatically and will start retrieving quotes using the new parameters.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.168.214