openrndr / org.openrndr.dialogs / saveFileDialog


fun saveFileDialog(programName: String = stackRootClassName(), contextID: String = "global", suggestedFilename: String? = null, supportedExtensions: List<String> = emptyList(), function: (File) -> Unit): Unit (source)

Creates a file dialog that can be used to save a single file files


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 of supported/allowed extensions

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