open


Description:

public async File? open (Window? parent, Cancellable? cancellable) throws Error

This function initiates a file selection operation by presenting a file chooser dialog to the user.

The callback will be called when the dialog is dismissed. It should call [method@Gtk.FileDialog.open_finish] to obtain the result.

Parameters:

this

a `GtkFileDialog`

parent

the parent `GtkWindow`

cancellable

a `GCancellable` to cancel the operation

callback

a callback to call when the operation is complete

user_data

data to pass to callback