RxWebView
RxWebView copied to clipboard
shouldInterceptRequest and return value
Hi
Just having a look at your example app and there's the following bit of code
val view = findViewById<WebView>(R.id.web2)
val client = WebViewClient()
val o = view.events(client).share()
o.ofType(ShouldInterceptRequest::class.java)
.subscribe { data -> Log.d("ShouldInterceptRequest", data.toString()) }
shouldInterceptRequest typically requires either a return value of null or a webresourceresponse. How would you do this?