openrndr / org.openrndr.dialogs / openFilesDialog

openFilesDialog

fun openFilesDialog(programName: String = stackRootClassName(), contextID: String = "global", supportedExtensions: List<String>, function: (List<File>) -> Unit): Unit (source)

Creates a file dialog that can be used to open multiple files

Parameters

programName - optional name of the program, this is guessed from a stack trace by default

contextID - optional context identifier, default is "global"

supportedExtensions - a list of supported/allowed extensions

function - the function to be invoked when a file has been picked

See Also

openFileDialog

saveFileDialog

fun openFilesDialog(programName: String = stackRootClassName(), contextID: String = "global", function: (List<File>) -> Unit): Unit (source)

Creates a file dialog that can be used to open multiple files

Parameters

programName - optional name of the program, this is guessed from a stack trace by default

contextID - optional context identifier, default is "global"

function - the function to be invoked when a file has been picked