saveFileDialog
fun saveFileDialog(programName: String = stackRootClassName(), contextID: String = "global", defaultPath: String? = getDefaultPathForContext(programName, contextID), suggestedFilename: String? = null, supportedExtensions: List<Pair<String, List<String>>> = emptyList(), function: (File) -> Unit)(source)
Creates a file dialog that can be used to save a single file files
Parameters
programName
optional name of the program, this is guessed from a stack trace by default
contextID
optional context identifier, default is "global"
suggestedFilename
an optional suggestion for a filename
supportedExtensions
an optional list with supported/allowed extensions sets. Usage: listOf("vector" to listOf("svg", "ai"), "bitmap" to listOf("jpg", "JPG")) The first extension in the list is applied when none provided.
function
the function to be invoked when a file has been picked