open


Description:

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

Presents a file chooser dialog to the user.

The file chooser dialog will be set up to select a single file.

The callback will be called when the dialog is dismissed.

Parameters:

this

a file dialog

parent

the parent window

cancellable

a cancellable to cancel the operation

callback

a callback to call when the operation is complete

user_data

data to pass to callback