WebJS

class WebJS(context: Context)

Convenience class to eval js on web pages

Parameters

context

Context to create webview

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
fun cookiesOnFinish(link: String, userAgent: String, headers: Map<String, String>, timeout: Long, cookies: (String) -> Unit)

Get the cookies of the link after being loaded in a Webview

Link copied to clipboard
fun evalJs(code: String, result: (String) -> Unit)

Eval js on a webview

Link copied to clipboard
fun evalOnFinish(link: String, userAgent: String, headers: Map<String, String>, timeout: Long, js: String, callback: (String) -> Unit)

Eval de js code on the link after being loaded in a Webview