Represents a series of methods to operate platform-specific file pickers.
More...
|
IList< T > | OpenFilePanel (string title, string directory, ExtensionFilter[] extensions, bool multiselect) |
| Opens the platform-specific file selection panel. More...
|
|
IList< T > | OpenFolderPanel (string title, string directory, bool multiselect) |
| Opens the platform-specific folder selection panel. More...
|
|
T | SaveFilePanel (string title, string directory, string defaultName, ExtensionFilter[] extensions) |
| Opens the platform-specific file save panel. More...
|
|
void | OpenFilePanelAsync (string title, string directory, ExtensionFilter[] extensions, bool multiselect, Action< IList< T > > cb) |
| Opens the platform-specific file selection panel Asynchronously. More...
|
|
void | OpenFolderPanelAsync (string title, string directory, bool multiselect, Action< IList< T > > cb) |
| Opens the platform-specific folder selection panel Asynchronously. More...
|
|
void | SaveFilePanelAsync (string title, string directory, string defaultName, ExtensionFilter[] extensions, Action< T > cb) |
| Opens the platform-specific file save panel Asynchronously. More...
|
|
Represents a series of methods to operate platform-specific file pickers.
- Template Parameters
-
T | File picker return type. |
Definition at line 8 of file IStandaloneFileBrowser.cs.
◆ OpenFilePanel()
Opens the platform-specific file selection panel.
- Parameters
-
title | The dialog title. |
directory | The initial file panel directory. |
extensions | The allowed extensions. |
multiselect | Pass true to enable multi-selection. |
- Returns
- The list of selected files.
◆ OpenFilePanelAsync()
Opens the platform-specific file selection panel Asynchronously.
- Parameters
-
title | The dialog title. |
directory | The initial file panel directory. |
extensions | The allowed extensions. |
multiselect | Pass true to enable multi-selection. |
cb | The Method to call when the user selects or cancel the file selection dialog. |
◆ OpenFolderPanel()
Opens the platform-specific folder selection panel.
- Parameters
-
title | The dialog title. |
directory | The initial file panel directory. |
multiselect | Pass true to enable multi-selection. |
- Returns
- The list of selected folders.
◆ OpenFolderPanelAsync()
Opens the platform-specific folder selection panel Asynchronously.
- Parameters
-
title | The dialog title. |
directory | The initial file panel directory. |
multiselect | Pass true to enable multi-selection. |
cb | The Method to call when the user selects or cancel the file selection dialog. |
◆ SaveFilePanel()
Opens the platform-specific file save panel.
- Parameters
-
title | The dialog title. |
directory | The initial file panel directory. |
defaultName | The initial filename. |
extensions | The allowed extensions. |
- Returns
- The saved file.
◆ SaveFilePanelAsync()
Opens the platform-specific file save panel Asynchronously.
- Parameters
-
title | The dialog title. |
directory | The initial file panel directory. |
defaultName | The initial filename. |
extensions | The allowed extensions. |
cb | The Method to call when the user selects or cancel the file selection dialog. |
The documentation for this interface was generated from the following file: