[ Version ( since = "2.22" ) ]
public async JavascriptResult run_javascript_in_world (string script, string world_name, Cancellable? cancellable = null) throws Error
Asynchronously run script
in the script world.
Asynchronously run script
in the script world with name world_name
of the current page context in
this. If WebKitSettings:enable-javascript is FALSE, this method will do nothing.
When the operation is finished, callback
will be called. You can then call run_javascript_in_world.end
to get the result of the operation.
this |
a WebView |
script |
the script to run |
world_name |
the name of a |
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 |