kaushikgopal / kaushikgopal/RxJava-Android-Samples
Wrapping an Android Method that requires return value
- Lingua principale
- Java
- Stelle
- 7.5k
- Fork
- 1.4k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia esaminando Android WebView.ShouldInterceptRequest e Observable.fromEventPattern di RxJava, concentrandoti su come dovrebbe fluire il valore restituito dal callback. L'issue è risolta quando è stata stabilita la fattibilità della restituzione di una risorsa o di null attraverso la catena Observable ed è stato identificato il punto di integrazione richiesto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, java
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100