showMessageBox
abstract fun showMessageBox(browserWindow: BrowserWindow, options: MessageBoxOptions): Promise<MessageBoxReturnValue>(source)
resolves with a promise containing the following properties:
response
number - The index of the clicked button.checkboxChecked
boolean - The checked state of the checkbox ifcheckboxLabel
was set. Otherwisefalse
.
Shows a message box.
The browserWindow
argument allows the dialog to attach itself to a parent window, making it modal.