WebView.runJavascriptFromGresource

Asynchronously run the script from @resource in the context of the current page in @web_view.

When the operation is finished, @callback will be called. You can then call webkit_web_view_run_javascript_from_gresource_finish() to get the result of the operation.

class WebView
void
runJavascriptFromGresource
(
string resource
,
Cancellable cancellable
,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

resource string

the location of the resource to load

cancellable Cancellable

a #GCancellable or %NULL to ignore

callback GAsyncReadyCallback

a #GAsyncReadyCallback to call when the script finished

userData void*

the data to pass to callback function

Meta