showSaveDialog
abstract fun showSaveDialog(window: BaseWindow, options: SaveDialogOptions): ERROR CLASS: Symbol not found for Promise<electron/core/SaveDialogReturnValue>(source)
abstract fun showSaveDialog(options: SaveDialogOptions): ERROR CLASS: Symbol not found for Promise<electron/core/SaveDialogReturnValue>(source)
Resolve with an object containing the following:
canceledboolean - whether or not the dialog was canceled.filePathstring - If the dialog is canceled, this will be an empty string.bookmarkstring (optional) macOS mas - Base64 encoded string which contains the security scoped bookmark data for the saved file.securityScopedBookmarksmust be enabled for this to be present. (For return values, see table here.)
The window 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.
!NOTE On macOS, using the asynchronous version is recommended to avoid issues when expanding and collapsing the dialog.