App

external interface App : EventEmitter

Functions

addListener
Link copied to clipboard
js
abstract fun addListener(event: String, listener: (event: Event) -> Unit): App
abstract fun addListener(event: String, listener: (session: Session) -> Unit): App
abstract override fun addListener(event: String, listener: (launchInfo: Any) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, window: BrowserWindow) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, webContents: WebContents) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, accessibilitySupportEnabled: Boolean) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, exitCode: Number) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, path: String) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, webContents: WebContents, details: Details) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, webContents: WebContents, guestWebContents: WebContents) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, webContents: WebContents, killed: Boolean) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, webContents: WebContents, moduleName: String) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, argv: Array<String>, workingDirectory: String) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, type: String, userInfo: Any) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, type: String, error: String) -> Unit): App
abstract fun addListener(event: String, listener: (event: Event, webContents: WebContents, authenticationResponseDetails: AuthenticationResponseDetails, authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> 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, url: String, error: String, certificate: Certificate, callback: (isTrusted: Boolean) -> Unit) -> Unit): App
abstract fun addListener(event: String, listener: Function<*>): App
open fun addListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
addRecentDocument
Link copied to clipboard
js
abstract fun addRecentDocument(path: String)
clearRecentDocuments
Link copied to clipboard
js
abstract fun clearRecentDocuments()
disableDomainBlockingFor3DAPIs
Link copied to clipboard
js
abstract fun disableDomainBlockingFor3DAPIs()
disableHardwareAcceleration
Link copied to clipboard
js
abstract fun disableHardwareAcceleration()
emit
Link copied to clipboard
js
open fun emit(event: Any, vararg args: Any): Boolean
open fun emit(event: String, vararg args: Any): Boolean
enableSandbox
Link copied to clipboard
js
abstract fun enableSandbox()
eventNames
Link copied to clipboard
js
open fun eventNames(): Array<dynamic>
exit
Link copied to clipboard
js
abstract fun exit(exitCode: Number = definedExternally)
focus
Link copied to clipboard
js
abstract fun focus(options: FocusOptions = definedExternally)
getApplicationNameForProtocol
Link copied to clipboard
js
abstract fun getApplicationNameForProtocol(url: String): String
getAppMetrics
Link copied to clipboard
js
abstract fun getAppMetrics(): Array<ProcessMetric>
getAppPath
Link copied to clipboard
js
abstract fun getAppPath(): String
getBadgeCount
Link copied to clipboard
js
abstract fun getBadgeCount(): Number
getCurrentActivityType
Link copied to clipboard
js
abstract fun getCurrentActivityType(): String
getFileIcon
Link copied to clipboard
js
abstract fun getFileIcon(path: String, options: FileIconOptions = definedExternally): <ERROR CLASS><NativeImage>
getGPUFeatureStatus
Link copied to clipboard
js
abstract fun getGPUFeatureStatus(): GPUFeatureStatus
getGPUInfo
Link copied to clipboard
js
abstract fun getGPUInfo(infoType: String): <ERROR CLASS><Any>
getJumpListSettings
Link copied to clipboard
js
abstract fun getJumpListSettings(): JumpListSettings
getLocale
Link copied to clipboard
js
abstract fun getLocale(): String
getLocaleCountryCode
Link copied to clipboard
js
abstract fun getLocaleCountryCode(): String
getLoginItemSettings
Link copied to clipboard
js
abstract fun getLoginItemSettings(options: LoginItemSettingsOptions = definedExternally): LoginItemSettings
getMaxListeners
Link copied to clipboard
js
open fun getMaxListeners(): Number
getName
Link copied to clipboard
js
abstract fun getName(): String
getPath
Link copied to clipboard
js
abstract fun getPath(name: String): String
getVersion
Link copied to clipboard
js
abstract fun getVersion(): String
hasSingleInstanceLock
Link copied to clipboard
js
abstract fun hasSingleInstanceLock(): Boolean
hide
Link copied to clipboard
js
abstract fun hide()
importCertificate
Link copied to clipboard
js
abstract fun importCertificate(options: ImportCertificateOptions, callback: (result: Number) -> Unit)
invalidateCurrentActivity
Link copied to clipboard
js
abstract fun invalidateCurrentActivity()
isAccessibilitySupportEnabled
Link copied to clipboard
js
abstract fun isAccessibilitySupportEnabled(): Boolean
isDefaultProtocolClient
Link copied to clipboard
js
abstract fun isDefaultProtocolClient(protocol: String, path: String = definedExternally, args: Array<String> = definedExternally): Boolean
isEmojiPanelSupported
Link copied to clipboard
js
abstract fun isEmojiPanelSupported(): Boolean
isInApplicationsFolder
Link copied to clipboard
js
abstract fun isInApplicationsFolder(): Boolean
isReady
Link copied to clipboard
js
abstract fun isReady(): Boolean
isUnityRunning
Link copied to clipboard
js
abstract fun isUnityRunning(): Boolean
listenerCount
Link copied to clipboard
js
open fun listenerCount(type: Any): Number
open fun listenerCount(type: String): Number
listeners
Link copied to clipboard
js
open fun listeners(event: Any): Array<Function<*>>
open fun listeners(event: String): Array<Function<*>>
moveToApplicationsFolder
Link copied to clipboard
js
abstract fun moveToApplicationsFolder(options: MoveToApplicationsFolderOptions = definedExternally): Boolean
off
Link copied to clipboard
js
open fun off(event: Any, listener: (args: Any) -> Unit): EventEmitter
open fun off(event: String, listener: (args: Any) -> Unit): EventEmitter
on
Link copied to clipboard
js
abstract fun on(event: String, listener: (event: Event) -> Unit): App
abstract fun on(event: String, listener: (session: Session) -> Unit): App
abstract override fun on(event: String, listener: (launchInfo: Any) -> Unit): App
abstract fun on(event: String, listener: (event: Event, window: BrowserWindow) -> Unit): App
abstract fun on(event: String, listener: (event: Event, webContents: WebContents) -> Unit): App
abstract fun on(event: String, listener: (event: Event, accessibilitySupportEnabled: Boolean) -> Unit): App
abstract fun on(event: String, listener: (event: Event, exitCode: Number) -> Unit): App
abstract fun on(event: String, listener: (event: Event, path: String) -> Unit): App
abstract fun on(event: String, listener: (event: Event, webContents: WebContents, details: Details) -> Unit): App
abstract fun on(event: String, listener: (event: Event, webContents: WebContents, guestWebContents: WebContents) -> Unit): App
abstract fun on(event: String, listener: (event: Event, webContents: WebContents, killed: Boolean) -> Unit): App
abstract fun on(event: String, listener: (event: Event, webContents: WebContents, moduleName: String) -> Unit): App
abstract fun on(event: String, listener: (event: Event, argv: Array<String>, workingDirectory: String) -> Unit): App
abstract fun on(event: String, listener: (event: Event, type: String, userInfo: Any) -> Unit): App
abstract fun on(event: String, listener: (event: Event, type: String, error: String) -> Unit): App
abstract fun on(event: String, listener: (event: Event, webContents: WebContents, authenticationResponseDetails: AuthenticationResponseDetails, authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> 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, url: String, error: String, certificate: Certificate, callback: (isTrusted: Boolean) -> Unit) -> Unit): App
abstract fun on(event: String, listener: Function<*>): App
open fun on(event: Any, listener: (args: Any) -> Unit): EventEmitter
once
Link copied to clipboard
js
abstract fun once(event: String, listener: (event: Event) -> Unit): App
abstract fun once(event: String, listener: (session: Session) -> Unit): App
abstract override fun once(event: String, listener: (launchInfo: Any) -> Unit): App
abstract fun once(event: String, listener: (event: Event, window: BrowserWindow) -> Unit): App
abstract fun once(event: String, listener: (event: Event, webContents: WebContents) -> Unit): App
abstract fun once(event: String, listener: (event: Event, accessibilitySupportEnabled: Boolean) -> Unit): App
abstract fun once(event: String, listener: (event: Event, exitCode: Number) -> Unit): App
abstract fun once(event: String, listener: (event: Event, path: String) -> Unit): App
abstract fun once(event: String, listener: (event: Event, webContents: WebContents, details: Details) -> Unit): App
abstract fun once(event: String, listener: (event: Event, webContents: WebContents, guestWebContents: WebContents) -> Unit): App
abstract fun once(event: String, listener: (event: Event, webContents: WebContents, killed: Boolean) -> Unit): App
abstract fun once(event: String, listener: (event: Event, webContents: WebContents, moduleName: String) -> Unit): App
abstract fun once(event: String, listener: (event: Event, argv: Array<String>, workingDirectory: String) -> Unit): App
abstract fun once(event: String, listener: (event: Event, type: String, userInfo: Any) -> Unit): App
abstract fun once(event: String, listener: (event: Event, type: String, error: String) -> Unit): App
abstract fun once(event: String, listener: (event: Event, webContents: WebContents, authenticationResponseDetails: AuthenticationResponseDetails, authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> 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, url: String, error: String, certificate: Certificate, callback: (isTrusted: Boolean) -> Unit) -> Unit): App
abstract fun once(event: String, listener: Function<*>): App
open fun once(event: Any, listener: (args: Any) -> Unit): EventEmitter
prependListener
Link copied to clipboard
js
open fun prependListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
open fun prependListener(event: String, listener: (args: Any) -> Unit): EventEmitter
prependOnceListener
Link copied to clipboard
js
open fun prependOnceListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
open fun prependOnceListener(event: String, listener: (args: Any) -> Unit): EventEmitter
quit
Link copied to clipboard
js
abstract fun quit()
rawListeners
Link copied to clipboard
js
open fun rawListeners(event: Any): Array<Function<*>>
open fun rawListeners(event: String): Array<Function<*>>
relaunch
Link copied to clipboard
js
abstract fun relaunch(options: RelaunchOptions = definedExternally)
releaseSingleInstanceLock
Link copied to clipboard
js
abstract fun releaseSingleInstanceLock()
removeAllListeners
Link copied to clipboard
js
open fun removeAllListeners(event: Any = definedExternally): EventEmitter
open fun removeAllListeners(event: String = definedExternally): EventEmitter
removeAsDefaultProtocolClient
Link copied to clipboard
js
abstract fun removeAsDefaultProtocolClient(protocol: String, path: String = definedExternally, args: Array<String> = definedExternally): Boolean
removeListener
Link copied to clipboard
js
abstract fun removeListener(event: String, listener: (event: Event) -> Unit): App
abstract fun removeListener(event: String, listener: (session: Session) -> Unit): App
abstract override fun removeListener(event: String, listener: (launchInfo: Any) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, window: BrowserWindow) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, webContents: WebContents) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, accessibilitySupportEnabled: Boolean) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, exitCode: Number) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, path: String) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, webContents: WebContents, details: Details) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, webContents: WebContents, guestWebContents: WebContents) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, webContents: WebContents, killed: Boolean) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, webContents: WebContents, moduleName: String) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, argv: Array<String>, workingDirectory: String) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, type: String, userInfo: Any) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, type: String, error: String) -> Unit): App
abstract fun removeListener(event: String, listener: (event: Event, webContents: WebContents, authenticationResponseDetails: AuthenticationResponseDetails, authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> 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, url: String, error: String, certificate: Certificate, callback: (isTrusted: Boolean) -> Unit) -> Unit): App
abstract fun removeListener(event: String, listener: Function<*>): App
open fun removeListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
requestSingleInstanceLock
Link copied to clipboard
js
abstract fun requestSingleInstanceLock(): Boolean
resignCurrentActivity
Link copied to clipboard
js
abstract fun resignCurrentActivity()
setAboutPanelOptions
Link copied to clipboard
js
abstract fun setAboutPanelOptions(options: AboutPanelOptionsOptions)
setAccessibilitySupportEnabled
Link copied to clipboard
js
abstract fun setAccessibilitySupportEnabled(enabled: Boolean)
setAppLogsPath
Link copied to clipboard
js
abstract fun setAppLogsPath(path: String = definedExternally)
setAppUserModelId
Link copied to clipboard
js
abstract fun setAppUserModelId(id: String)
setAsDefaultProtocolClient
Link copied to clipboard
js
abstract fun setAsDefaultProtocolClient(protocol: String, path: String = definedExternally, args: Array<String> = definedExternally): Boolean
setBadgeCount
Link copied to clipboard
js
abstract fun setBadgeCount(count: Number): Boolean
setJumpList
Link copied to clipboard
js
abstract fun setJumpList(categories: Array<JumpListCategory>?)
setLoginItemSettings
Link copied to clipboard
js
abstract fun setLoginItemSettings(settings: Settings)
setMaxListeners
Link copied to clipboard
js
open fun setMaxListeners(n: Number): EventEmitter
setName
Link copied to clipboard
js
abstract fun setName(name: String)
setPath
Link copied to clipboard
js
abstract fun setPath(name: String, path: String)
setUserActivity
Link copied to clipboard
js
abstract fun setUserActivity(type: String, userInfo: Any, webpageURL: String = definedExternally)
setUserTasks
Link copied to clipboard
js
abstract fun setUserTasks(tasks: Array<Task>): Boolean
show
Link copied to clipboard
js
abstract fun show()
showAboutPanel
Link copied to clipboard
js
abstract fun showAboutPanel()
showEmojiPanel
Link copied to clipboard
js
abstract fun showEmojiPanel()
startAccessingSecurityScopedResource
Link copied to clipboard
js
abstract fun startAccessingSecurityScopedResource(bookmarkData: String): Function<*>
updateCurrentActivity
Link copied to clipboard
js
abstract fun updateCurrentActivity(type: String, userInfo: Any)
whenReady
Link copied to clipboard
js
abstract fun whenReady(): <ERROR CLASS><Unit>

Properties

accessibilitySupportEnabled
Link copied to clipboard
js
abstract var accessibilitySupportEnabled: Boolean
allowRendererProcessReuse
Link copied to clipboard
js
abstract var allowRendererProcessReuse: Boolean
applicationMenu
Link copied to clipboard
js
abstract var applicationMenu: Menu?
badgeCount
Link copied to clipboard
js
abstract var badgeCount: Number
commandLine
Link copied to clipboard
js
abstract var commandLine: CommandLine
dock
Link copied to clipboard
js
abstract var dock: Dock
isPackaged
Link copied to clipboard
js
abstract var isPackaged: Boolean
name
Link copied to clipboard
js
abstract var name: String
userAgentFallback
Link copied to clipboard
js
abstract var userAgentFallback: String