WebView.saveToFile

void saveToFile(gio.file.File file, webkit.types.SaveMode saveMode, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Asynchronously save the current web page.

Asynchronously save the current web page associated to the #WebKitWebView 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 [webkit.web_view.WebView.saveToFileFinish] to get the result of the operation.

Parameters

filethe #GFile where the current web page should be saved to.
saveModethe #WebKitSaveMode specifying how the web page should be saved.
cancellablea #GCancellable or null to ignore
callbacka #GAsyncReadyCallback to call when the request is satisfied