save_to_file


Description:

public async bool save_to_file (File file, SaveMode save_mode, Cancellable? cancellable = null) throws Error

Asynchronously save the current web page.

Asynchronously save the current web page associated to the 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 save_to_file.end to get the result of the operation.

Parameters:

this

a WebView

file

the File where the current web page should be saved to.

save_mode

the SaveMode specifying how the web page should be saved.

cancellable

a Cancellable or null to ignore

callback

a TaskReadyCallback to call when the request is satisfied

user_data

the data to pass to callback function