showMessageBox

resolves with a promise containing the following properties:

  • response number - The index of the clicked button.

  • checkboxChecked boolean - The checked state of the checkbox if checkboxLabel was set. Otherwise false.

Shows a message box.

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