RxWebView icon indicating copy to clipboard operation
RxWebView copied to clipboard

shouldInterceptRequest and return value

Open tomgallagher opened this issue 7 years ago • 0 comments

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?

tomgallagher avatar Jan 09 '19 14:01 tomgallagher