saveToFile

open fun saveToFile(file: <Error class: unknown class>, saveMode: SaveMode, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)

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_save_to_file_finish() to get the result of the operation.

Parameters

file

the #GFile where the current web page should be saved to.

saveMode

the #WebKitSaveMode specifying how the web page should be saved.

cancellable

a #GCancellable or null to ignore

callback

a #GAsyncReadyCallback to call when the request is satisfied