Waiting For Api Calls To Complete With Rxjava And Retrofit
I'm using RxAndroid and RxJava with Kotlin to make various requests to APIs and reciving them asyncronylusly: getClient().sendSomeData(data) .subscribeOn(Schedu
Solution 1:
Answering your first question here and here you will see mentioned the Observable.onCompleted
method, which is called after succesful response. Also here is the doc for the this method. So you could simply implement the third Action in subscribe
method call and modify your request's state info.
If it comes to the request progress status, I'm not sure, but I suppose that RxJava does not offer this functionality out of the box. However I found the answer here (with use of Retrofit library).
Post a Comment for "Waiting For Api Calls To Complete With Rxjava And Retrofit"