kvision / pl.treksoft.kvision.electron / App

App

(js) interface App : EventEmitter

Properties

(js)

commandLine

abstract var commandLine: CommandLine
(js)

dock

abstract var dock: Dock

Functions

(js)

addListener

abstract fun addListener(event: String, listener: (event: Event, accessibilitySupportEnabled: Boolean) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, hasVisibleWindows: Boolean) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, type: String, userInfo: Any) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, window: BrowserWindow) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, webContents: WebContents, url: String, error: String, certificate: Certificate, callback: (isTrusted: Boolean) -> Unit) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, type: String, error: String) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, killed: Boolean) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, webContents: WebContents, request: Request, authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, path: String) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, url: String) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, exitCode: Number) -> Unit): App
abstract fun addListener(event: String, listener: (launchInfo: Any) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, webContents: WebContents, url: String, certificateList: Array<Certificate>, callback: (certificate: Certificate?) -> Unit) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, webContents: WebContents) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, type: String) -> Unit): App
abstract fun addListener(event: String, listener: Function<*>): App
(js)

addRecentDocument

abstract fun addRecentDocument(path: String): Unit
(js)

clearRecentDocuments

abstract fun clearRecentDocuments(): Unit
(js)

disableDomainBlockingFor3DAPIs

abstract fun disableDomainBlockingFor3DAPIs(): Unit
(js)

disableHardwareAcceleration

abstract fun disableHardwareAcceleration(): Unit
(js)

enableMixedSandbox

abstract fun enableMixedSandbox(): Unit
(js)

exit

abstract fun exit(exitCode: Number? = definedExternally): Unit
(js)

focus

abstract fun focus(): Unit
(js)

getAppMetrics

abstract fun getAppMetrics(): Array<ProcessMetric>
(js)

getAppPath

abstract fun getAppPath(): String
(js)

getBadgeCount

abstract fun getBadgeCount(): Number
(js)

getCurrentActivityType

abstract fun getCurrentActivityType(): String
(js)

getFileIcon

abstract fun getFileIcon(path: String, callback: (error: Error, icon: NativeImage) -> Unit): Unit
abstract fun getFileIcon(path: String, options: FileIconOptions, callback: (error: Error, icon: NativeImage) -> Unit): Unit
(js)

getGPUFeatureStatus

abstract fun getGPUFeatureStatus(): GPUFeatureStatus
(js)

getJumpListSettings

abstract fun getJumpListSettings(): JumpListSettings
(js)

getLocale

abstract fun getLocale(): String
(js)

getLoginItemSettings

abstract fun getLoginItemSettings(options: LoginItemSettingsOptions? = definedExternally): LoginItemSettings
(js)

getName

abstract fun getName(): String
(js)

getPath

abstract fun getPath(name: String): String
(js)

getVersion

abstract fun getVersion(): String
(js)

hide

abstract fun hide(): Unit
(js)

importCertificate

abstract fun importCertificate(options: ImportCertificateOptions, callback: (result: Number) -> Unit): Unit
(js)

invalidateCurrentActivity

abstract fun invalidateCurrentActivity(type: String): Unit
(js)

isAccessibilitySupportEnabled

abstract fun isAccessibilitySupportEnabled(): Boolean
(js)

isDefaultProtocolClient

abstract fun isDefaultProtocolClient(protocol: String, path: String? = definedExternally, args: Array<String>? = definedExternally): Boolean
(js)

isInApplicationsFolder

abstract fun isInApplicationsFolder(): Boolean
(js)

isReady

abstract fun isReady(): Boolean
(js)

isUnityRunning

abstract fun isUnityRunning(): Boolean
(js)

makeSingleInstance

abstract fun makeSingleInstance(callback: (argv: Array<String>, workingDirectory: String) -> Unit): Boolean
(js)

moveToApplicationsFolder

abstract fun moveToApplicationsFolder(): Boolean
(js)

on

abstract fun on(event: String, listener: (event: Event, accessibilitySupportEnabled: Boolean) -> Unit): App
abstract fun on(event: String, listener: (event: Event, hasVisibleWindows: Boolean) -> Unit): App
abstract fun on(event: String, listener: (event: Event, type: String, userInfo: Any) -> Unit): App
abstract fun on(event: String, listener: (event: Event) -> Unit): App
abstract fun on(event: String, listener: (event: Event, window: BrowserWindow) -> Unit): App
abstract fun on(event: String, listener: (event: Event, webContents: WebContents, url: String, error: String, certificate: Certificate, callback: (isTrusted: Boolean) -> Unit) -> Unit): App
abstract fun on(event: String, listener: (event: Event, type: String, error: String) -> Unit): App
abstract fun on(event: String, listener: (event: Event, killed: Boolean) -> Unit): App
abstract fun on(event: String, listener: (event: Event, webContents: WebContents, request: Request, authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> Unit): App
abstract fun on(event: String, listener: (event: Event, path: String) -> Unit): App
abstract fun on(event: String, listener: (event: Event, url: String) -> Unit): App
abstract fun on(event: String, listener: (event: Event, exitCode: Number) -> Unit): App
abstract fun on(event: String, listener: (launchInfo: Any) -> Unit): App
abstract fun on(event: String, listener: (event: Event, webContents: WebContents, url: String, certificateList: Array<Certificate>, callback: (certificate: Certificate?) -> Unit) -> Unit): App
abstract fun on(event: String, listener: (event: Event, webContents: WebContents) -> Unit): App
abstract fun on(event: String, listener: (event: Event, type: String) -> Unit): App
abstract fun on(event: String, listener: Function<*>): App
(js)

once

abstract fun once(event: String, listener: (event: Event, accessibilitySupportEnabled: Boolean) -> Unit): App
abstract fun once(event: String, listener: (event: Event, hasVisibleWindows: Boolean) -> Unit): App
abstract fun once(event: String, listener: (event: Event, type: String, userInfo: Any) -> Unit): App
abstract fun once(event: String, listener: (event: Event) -> Unit): App
abstract fun once(event: String, listener: (event: Event, window: BrowserWindow) -> Unit): App
abstract fun once(event: String, listener: (event: Event, webContents: WebContents, url: String, error: String, certificate: Certificate, callback: (isTrusted: Boolean) -> Unit) -> Unit): App
abstract fun once(event: String, listener: (event: Event, type: String, error: String) -> Unit): App
abstract fun once(event: String, listener: (event: Event, killed: Boolean) -> Unit): App
abstract fun once(event: String, listener: (event: Event, webContents: WebContents, request: Request, authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> Unit): App
abstract fun once(event: String, listener: (event: Event, path: String) -> Unit): App
abstract fun once(event: String, listener: (event: Event, url: String) -> Unit): App
abstract fun once(event: String, listener: (event: Event, exitCode: Number) -> Unit): App
abstract fun once(event: String, listener: (launchInfo: Any) -> Unit): App
abstract fun once(event: String, listener: (event: Event, webContents: WebContents, url: String, certificateList: Array<Certificate>, callback: (certificate: Certificate?) -> Unit) -> Unit): App
abstract fun once(event: String, listener: (event: Event, webContents: WebContents) -> Unit): App
abstract fun once(event: String, listener: (event: Event, type: String) -> Unit): App
abstract fun once(event: String, listener: Function<*>): App
(js)

quit

abstract fun quit(): Unit
(js)

relaunch

abstract fun relaunch(options: RelaunchOptions? = definedExternally): Unit
(js)

releaseSingleInstance

abstract fun releaseSingleInstance(): Unit
(js)

removeAsDefaultProtocolClient

abstract fun removeAsDefaultProtocolClient(protocol: String, path: String? = definedExternally, args: Array<String>? = definedExternally): Boolean
(js)

removeListener

abstract fun removeListener(event: String, listener: (event: Event, accessibilitySupportEnabled: Boolean) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, hasVisibleWindows: Boolean) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, type: String, userInfo: Any) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, window: BrowserWindow) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, webContents: WebContents, url: String, error: String, certificate: Certificate, callback: (isTrusted: Boolean) -> Unit) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, type: String, error: String) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, killed: Boolean) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, webContents: WebContents, request: Request, authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, path: String) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, url: String) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, exitCode: Number) -> Unit): App
abstract fun removeListener(event: String, listener: (launchInfo: Any) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, webContents: WebContents, url: String, certificateList: Array<Certificate>, callback: (certificate: Certificate?) -> Unit) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, webContents: WebContents) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, type: String) -> Unit): App
abstract fun removeListener(event: String, listener: Function<*>): App
(js)

setAboutPanelOptions

abstract fun setAboutPanelOptions(options: AboutPanelOptionsOptions): Unit
(js)

setAccessibilitySupportEnabled

abstract fun setAccessibilitySupportEnabled(enabled: Boolean): Unit
(js)

setAppUserModelId

abstract fun setAppUserModelId(id: String): Unit
(js)

setAsDefaultProtocolClient

abstract fun setAsDefaultProtocolClient(protocol: String, path: String? = definedExternally, args: Array<String>? = definedExternally): Boolean
(js)

setBadgeCount

abstract fun setBadgeCount(count: Number): Boolean
(js)

setJumpList

abstract fun setJumpList(categories: Array<JumpListCategory>): Unit
(js)

setLoginItemSettings

abstract fun setLoginItemSettings(settings: Settings): Unit
(js)

setName

abstract fun setName(name: String): Unit
(js)

setPath

abstract fun setPath(name: String, path: String): Unit
(js)

setUserActivity

abstract fun setUserActivity(type: String, userInfo: Any, webpageURL: String? = definedExternally): Unit
(js)

setUserTasks

abstract fun setUserTasks(tasks: Array<Task>): Boolean
(js)

show

abstract fun show(): Unit
(js)

startAccessingSecurityScopedResource

abstract fun startAccessingSecurityScopedResource(bookmarkData: String): Function<*>
(js)

updateCurrentActivity

abstract fun updateCurrentActivity(type: String, userInfo: Any): Unit