save_file


Description:

public async Variant save_file (Parent? parent, string title, string? current_name, string? current_folder, string? current_file, Variant? filters, Variant? current_filter, Variant? choices, SaveFileFlags flags, Cancellable? cancellable) throws Error

Asks the user for a location to save a file.

The format for the filters argument is the same as for [[email protected]_file].

The format for the choices argument is the same as for [[email protected]_file].

When the request is done, callback will be called. You can then call [[email protected]_file_finish] to get the results.

Parameters:

this

a [class@Portal]

parent

parent window information

title

title for the file chooser dialog

current_name

suggested filename

current_folder

suggested folder to save the file in

current_file

the current file (when saving an existing file)

filters

a [[email protected]] describing file filters

current_filter

a [[email protected]] describing the current file filter

choices

a [[email protected]] describing extra widgets

flags

options for this call

cancellable

optional [[email protected]]

callback

a callback to call when the request is done

data

data to pass to callback




2022 vala-language.org