showSaveDialogSync

abstract fun showSaveDialogSync(browserWindow: BrowserWindow, options: SaveDialogSyncOptions): String(source)

the path of the file chosen by the user; if the dialog is cancelled it returns an empty string.

The browserWindow argument allows the dialog to attach itself to a parent window, making it modal.

The filters specifies an array of file types that can be displayed, see dialog.showOpenDialog for an example.