save_file
Description:
Asks the user for a location to save a file.
The format for the filters argument is the same as for [method@Portal.open_file].
The format for the choices argument is the same as for [method@Portal.open_file].
When the request is done, callback will be called. You can then call [method@Portal.save_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 [struct@GLib.Variant] describing file filters |
| current_filter |
a [struct@GLib.Variant] describing the current file filter |
| choices |
a [struct@GLib.Variant] describing extra widgets |
| flags |
options for this call |
| cancellable |
optional [class@Gio.Cancellable] |
| callback |
a callback to call when the request is done |
| data |
data to pass to |