You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for all the useful examples. I'm just picking up Android and RxJava2, coming from a Javascript background, and they have been very instructive.
I have a question regarding the transmission of return values in an Observable.
I’ve come up against a particular problem, with the WebView.ShouldInterceptRequest function. I’ve managed to port all the WebView events into an Observable but I’m facing the problem of needing to return a resource or null value to the Observable at some point down the chain.
In JS, I got round this by using Rx.Observable.fromEventPattern. I had a wrapper function around the equivalent of WebView.ShouldInterceptRequest, and returned a resource or null to the wrapper function when required. Is this a valid approach?
If you could point me in the right direction, I’d be very appreciative.
The text was updated successfully, but these errors were encountered:
Hey
Thanks for all the useful examples. I'm just picking up Android and RxJava2, coming from a Javascript background, and they have been very instructive.
I have a question regarding the transmission of return values in an Observable.
I’ve come up against a particular problem, with the WebView.ShouldInterceptRequest function. I’ve managed to port all the WebView events into an Observable but I’m facing the problem of needing to return a resource or null value to the Observable at some point down the chain.
In JS, I got round this by using Rx.Observable.fromEventPattern. I had a wrapper function around the equivalent of WebView.ShouldInterceptRequest, and returned a resource or null to the wrapper function when required. Is this a valid approach?
If you could point me in the right direction, I’d be very appreciative.
The text was updated successfully, but these errors were encountered: