WebKit2.WebView.prototype.save_to_file
function save_to_file(file: Gio.File, save_mode: WebKit2.SaveMode, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for webkit_web_view_save_to_file() }
Asynchronously save the current web page associated to the WebKit2.WebView into a self-contained format using the mode specified in save_mode and writing it to file.
When the operation is finished, callback will be called. You can then call WebKit2.WebView.prototype.save_to_file_finish to get the result of the operation.
- file
the Gio.File where the current web page should be saved to.
- save_mode
the WebKit2.SaveMode specifying how the web page should be saved.
- cancellable
a Gio.Cancellable or null to ignore
- callback
a Gio.AsyncReadyCallback to call when the request is satisfied