eval On Finish
suspend fun evalOnFinish(link: String, js: String, userAgent: String = webJs.defaultUserAgent, headers: Map<String, String> = emptyMap(), timeout: Long = 1000): String?(source)
Eval a js code after loading a link
Return
The result of the eval code
Parameters
link
Link to be loaded in the webview
user Agent
Optional user agent to be used while loading the link
headers
Optional additional headers
timeout
Time to wait after onPageFinished is called before evaluating the code
code
The code to be evaluated