From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- .../-dialog/index.html | 168 +++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 api1/pl.treksoft.kvision.electron/-dialog/index.html (limited to 'api1/pl.treksoft.kvision.electron/-dialog/index.html') diff --git a/api1/pl.treksoft.kvision.electron/-dialog/index.html b/api1/pl.treksoft.kvision.electron/-dialog/index.html new file mode 100644 index 00000000..ac5d1825 --- /dev/null +++ b/api1/pl.treksoft.kvision.electron/-dialog/index.html @@ -0,0 +1,168 @@ + + + +Dialog - kvision + + + +kvision / pl.treksoft.kvision.electron / Dialog
+
+

Dialog

+external interface Dialog : EventEmitter +

Functions

+ + + + + + + + + + + + + + + + + + + + + + + +
+

showCertificateTrustDialog

+
+abstract fun showCertificateTrustDialog(browserWindow: BrowserWindow, options: CertificateTrustDialogOptions, callback: Function<*>): Unit
+abstract fun showCertificateTrustDialog(options: CertificateTrustDialogOptions, callback: Function<*>): Unit
+abstract fun showCertificateTrustDialog(browserWindow: BrowserWindow, options: CertificateTrustDialogOptions, callback: Function<*>): Unit
+

showErrorBox

+
+abstract fun showErrorBox(title: String, content: String): Unit
+

showMessageBox

+
+abstract fun showMessageBox(browserWindow: BrowserWindow, options: MessageBoxOptions, callback: ((response: Number, checkboxChecked: Boolean) -> Unit)? = definedExternally): Number
+abstract fun showMessageBox(options: MessageBoxOptions, callback: ((response: Number, checkboxChecked: Boolean) -> Unit)? = definedExternally): Number
+

showOpenDialog

+
+abstract fun showOpenDialog(browserWindow: BrowserWindow, options: OpenDialogOptions, callback: ((filePaths: Array<String>, bookmarks: Array<String>) -> Unit)? = definedExternally): Array<String>
+abstract fun showOpenDialog(options: OpenDialogOptions, callback: ((filePaths: Array<String>, bookmarks: Array<String>) -> Unit)? = definedExternally): Array<String>
+

showSaveDialog

+
+abstract fun showSaveDialog(browserWindow: BrowserWindow, options: SaveDialogOptions, callback: ((filename: String, bookmark: String) -> Unit)? = definedExternally): String
+abstract fun showSaveDialog(options: SaveDialogOptions, callback: ((filename: String, bookmark: String) -> Unit)? = definedExternally): String
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

addListener

+
+open fun addListener(event: String, listener: Function<*>): EventEmitter
+

emit

+
+open fun emit(event: String, vararg args: Any): Boolean
+

eventNames

+
+open fun eventNames(): Array<String>
+

getMaxListeners

+
+open fun getMaxListeners(): Number
+

listenerCount

+
+open fun listenerCount(type: String): Number
+

listeners

+
+open fun listeners(event: String): Array<Function<*>>
+

on

+
+open fun on(event: String, listener: Function<*>): EventEmitter
+

once

+
+open fun once(event: String, listener: Function<*>): EventEmitter
+

prependListener

+
+open fun prependListener(event: String, listener: Function<*>): EventEmitter
+

prependOnceListener

+
+open fun prependOnceListener(event: String, listener: Function<*>): EventEmitter
+

removeAllListeners

+
+open fun removeAllListeners(event: String? = definedExternally): EventEmitter
+

removeListener

+
+open fun removeListener(event: String, listener: Function<*>): EventEmitter
+

setMaxListeners

+
+open fun setMaxListeners(n: Number): EventEmitter
+

Extension Functions

+ + + + + + + +
+

createInstance

+
+fun <T> Any?.createInstance(vararg args: dynamic): T +

Helper function for creating JavaScript objects from dynamic constructors.

+
+ + -- cgit