webview_eval

abstract fun webview_eval(webview: Pointer?, js: String)

Evaluates arbitrary JavaScript code.

Evaluation happens asynchronously, also the result of the expression is ignored. Use the webview_bind function if you want to receive notifications about the results of the evaluation.

Parameters

webview

the handle of webview, usually returned by webview_create

js

the JS code