Functions
Link copied to clipboard
abstract external fun showCertificateTrustDialog(options: CertificateTrustDialogOptions): Promise<Void>
abstract external fun showCertificateTrustDialog(window: BaseWindow, 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 external fun showMessageBox(window: BaseWindow, options: MessageBoxOptions): Promise<MessageBoxReturnValue>
resolves with a promise containing the following properties:
Link copied to clipboard
abstract external fun showMessageBoxSync(window: BaseWindow, options: MessageBoxSyncOptions): Double
the index of the clicked button.
Link copied to clipboard
abstract external fun showOpenDialog(window: BaseWindow, options: OpenDialogOptions): Promise<OpenDialogReturnValue>
Resolve with an object containing the following:
Link copied to clipboard
abstract external fun showOpenDialogSync(window: BaseWindow, options: OpenDialogSyncOptions): ReadonlyArray<String>?
the file paths chosen by the user; if the dialog is cancelled it returns undefined.
Link copied to clipboard
abstract external fun showSaveDialog(window: BaseWindow, options: SaveDialogOptions): Promise<SaveDialogReturnValue>
Resolve with an object containing the following:
Link copied to clipboard
abstract external fun showSaveDialogSync(window: BaseWindow, options: SaveDialogSyncOptions): String
the path of the file chosen by the user; if the dialog is cancelled it returns an empty string.