run_javascript_from_gresource


Description:

public async JavascriptResult run_javascript_from_gresource (string resource, Cancellable? cancellable = null) throws Error

Asynchronously run the script from resource.

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

When the operation is finished, callback will be called. You can then call run_javascript_from_gresource.end to get the result of the operation.

Parameters:

this

a WebView

resource

the location of the resource to load

cancellable

a Cancellable or null to ignore

callback

a TaskReadyCallback to call when the script finished

user_data

the data to pass to callback function




2022 vala-language.org