NativeFileSO

Keiwando.NFSO.NativeFileSOMacWin

instance method

SelectOpenPaths

public void SelectOpenPaths (SupportedFileType[] fileTypes, bool canSelectMultiple, string title, string directory, Action<bool, string[]> onCompletion) 

Summary

Presents a native dialog to the user which allows them to select multiple file paths for opening files.

Parameters

fileTypes

The file types used to filter the available files shown to the user.

canSelectMultiple

Determines whether multiple files can be selected and loaded at once.

title

The title of the dialog. Note: The title is not shown on macOS 10.11 and above.

directory

The default directory in which file navigation should start. If this value is empty, the panel will remember the last visited directory.

onCompletion

A callback for when the presented dialog has been dismissed. The first parameter of the callback specifies whether a path was selected or the selection was cancelled.

Remarks

On macOS, this will present a non-floating panel.