Tanoda
TriLibCore.SFB.IStandaloneFileBrowser< T > Interface Template Reference

Represents a series of methods to operate platform-specific file pickers. More...

Public Member Functions

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...
 
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...
 

Detailed Description

Represents a series of methods to operate platform-specific file pickers.

Template Parameters
TFile picker return type.

Definition at line 8 of file IStandaloneFileBrowser.cs.

Member Function Documentation

◆ OpenFilePanel()

IList< T > TriLibCore.SFB.IStandaloneFileBrowser< T >.OpenFilePanel ( string  title,
string  directory,
ExtensionFilter[]  extensions,
bool  multiselect 
)

Opens the platform-specific file selection panel.

Parameters
titleThe dialog title.
directoryThe initial file panel directory.
extensionsThe allowed extensions.
multiselectPass true to enable multi-selection.
Returns
The list of selected files.

◆ OpenFilePanelAsync()

void TriLibCore.SFB.IStandaloneFileBrowser< T >.OpenFilePanelAsync ( string  title,
string  directory,
ExtensionFilter[]  extensions,
bool  multiselect,
Action< IList< T > >  cb 
)

Opens the platform-specific file selection panel Asynchronously.

Parameters
titleThe dialog title.
directoryThe initial file panel directory.
extensionsThe allowed extensions.
multiselectPass true to enable multi-selection.
cbThe Method to call when the user selects or cancel the file selection dialog.

◆ OpenFolderPanel()

IList< T > TriLibCore.SFB.IStandaloneFileBrowser< T >.OpenFolderPanel ( string  title,
string  directory,
bool  multiselect 
)

Opens the platform-specific folder selection panel.

Parameters
titleThe dialog title.
directoryThe initial file panel directory.
multiselectPass true to enable multi-selection.
Returns
The list of selected folders.

◆ OpenFolderPanelAsync()

void TriLibCore.SFB.IStandaloneFileBrowser< T >.OpenFolderPanelAsync ( string  title,
string  directory,
bool  multiselect,
Action< IList< T > >  cb 
)

Opens the platform-specific folder selection panel Asynchronously.

Parameters
titleThe dialog title.
directoryThe initial file panel directory.
multiselectPass true to enable multi-selection.
cbThe Method to call when the user selects or cancel the file selection dialog.

◆ SaveFilePanel()

T TriLibCore.SFB.IStandaloneFileBrowser< T >.SaveFilePanel ( string  title,
string  directory,
string  defaultName,
ExtensionFilter[]  extensions 
)

Opens the platform-specific file save panel.

Parameters
titleThe dialog title.
directoryThe initial file panel directory.
defaultNameThe initial filename.
extensionsThe allowed extensions.
Returns
The saved file.

◆ SaveFilePanelAsync()

void TriLibCore.SFB.IStandaloneFileBrowser< T >.SaveFilePanelAsync ( string  title,
string  directory,
string  defaultName,
ExtensionFilter[]  extensions,
Action< T >  cb 
)

Opens the platform-specific file save panel Asynchronously.

Parameters
titleThe dialog title.
directoryThe initial file panel directory.
defaultNameThe initial filename.
extensionsThe allowed extensions.
cbThe Method to call when the user selects or cancel the file selection dialog.

The documentation for this interface was generated from the following file: