FileChooser.getPreviewFile

gio.file.File getPreviewFile()

Gets the #GFile that should be previewed in a custom preview Internal function, see [gtk.file_chooser.FileChooser.getPreviewUri].

Returns

the #GFile for the file to preview,

or null if no file is selected. Free with [gobject.object.ObjectWrap.unref].