WebKit2.WebView.prototype.save

function save(save_mode: WebKit2.SaveMode, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for webkit_web_view_save()
}
  

Asynchronously save the current web page associated to the WebKit2.WebView into a self-contained format using the mode specified in save_mode.

When the operation is finished, callback will be called. You can then call WebKit2.WebView.prototype.save_finish to get the result of the operation.

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