Web View Resolver
actual constructor(interceptUrl: Regex, additionalUrls: List<Regex>, userAgent: String?, useOkhttp: Boolean, script: String?, scriptCallback: (String) -> Unit?, timeout: Long)(source)
Parameters
intercept Url
will stop the WebView when reaching this url.
additional Urls
this will make resolveUsingWebView also return all other requests matching the list of Regex.
user Agent
if null then will use the default user agent
use Okhttp
will try to use the okhttp client as much as possible, but this might cause some requests to fail. Disable for cloudflare.
script
pass custom js to execute
script Callback
will be called with the result from custom js
timeout
close webview after timeout