Dialog

external interface Dialog(source)

Functions

Link copied to clipboard

resolves when the certificate trust dialog is shown.

Link copied to clipboard
abstract fun showErrorBox(title: String, content: String)

Displays a modal dialog that shows an error message.

Link copied to clipboard

resolves with a promise containing the following properties:

Link copied to clipboard
abstract fun showMessageBoxSync(browserWindow: BrowserWindow, options: MessageBoxSyncOptions): Double

the index of the clicked button.

Link copied to clipboard

Resolve with an object containing the following:

Link copied to clipboard

the file paths chosen by the user; if the dialog is cancelled it returns undefined.

Link copied to clipboard

Resolve with an object containing the following:

Link copied to clipboard
abstract fun showSaveDialogSync(browserWindow: BrowserWindow, options: SaveDialogSyncOptions): String

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