O'Reilly logo

Reactive Android Programming by Tadas Subonis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required