Functions
Link copied to clipboard
abstract fun showCertificateTrustDialog(browserWindow: BrowserWindow, options: CertificateTrustDialogOptions): Promise<Void>
resolves when the certificate trust dialog is shown.
Link copied to clipboard
Displays a modal dialog that shows an error message.
Link copied to clipboard
abstract fun showMessageBox(browserWindow: BrowserWindow, options: MessageBoxOptions): Promise<MessageBoxReturnValue>
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
abstract fun showOpenDialog(browserWindow: BrowserWindow, options: OpenDialogOptions): Promise<OpenDialogReturnValue>
Resolve with an object containing the following:
Link copied to clipboard
abstract fun showOpenDialogSync(browserWindow: BrowserWindow, options: OpenDialogSyncOptions): ReadonlyArray<String>?
the file paths chosen by the user; if the dialog is cancelled it returns undefined
.
Link copied to clipboard
abstract fun showSaveDialog(browserWindow: BrowserWindow, options: SaveDialogOptions): Promise<SaveDialogReturnValue>
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.