App

external interface App : EventEmitter

Functions

addListener
Link copied to clipboard
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
abstract fun addRecentDocument(path: String)
clearRecentDocuments
Link copied to clipboard
abstract fun clearRecentDocuments()
disableDomainBlockingFor3DAPIs
Link copied to clipboard
abstract fun disableDomainBlockingFor3DAPIs()
disableHardwareAcceleration
Link copied to clipboard
abstract fun disableHardwareAcceleration()
emit
Link copied to clipboard
open fun emit(event: Any, vararg args: Any): Boolean
open fun emit(event: String, vararg args: Any): Boolean
enableSandbox
Link copied to clipboard
abstract fun enableSandbox()
eventNames
Link copied to clipboard
open fun eventNames(): Array<dynamic>
exit
Link copied to clipboard
abstract fun exit(exitCode: Number = definedExternally)
focus
Link copied to clipboard
abstract fun focus(options: FocusOptions = definedExternally)
getApplicationNameForProtocol
Link copied to clipboard
abstract fun getApplicationNameForProtocol(url: String): String
getAppMetrics
Link copied to clipboard
abstract fun getAppMetrics(): Array<ProcessMetric>
getAppPath
Link copied to clipboard
abstract fun getAppPath(): String
getBadgeCount
Link copied to clipboard
abstract fun getBadgeCount(): Number
getCurrentActivityType
Link copied to clipboard
abstract fun getCurrentActivityType(): String
getFileIcon
Link copied to clipboard
abstract fun getFileIcon(path: String, options: FileIconOptions = definedExternally): Promise<NativeImage>
getGPUFeatureStatus
Link copied to clipboard
abstract fun getGPUFeatureStatus(): GPUFeatureStatus
getGPUInfo
Link copied to clipboard
abstract fun getGPUInfo(infoType: String): Promise<Any>
getJumpListSettings
Link copied to clipboard
abstract fun getJumpListSettings(): JumpListSettings
getLocale
Link copied to clipboard
abstract fun getLocale(): String
getLocaleCountryCode
Link copied to clipboard
abstract fun getLocaleCountryCode(): String
getLoginItemSettings
Link copied to clipboard
abstract fun getLoginItemSettings(options: LoginItemSettingsOptions = definedExternally): LoginItemSettings
getMaxListeners
Link copied to clipboard
open fun getMaxListeners(): Number
getName
Link copied to clipboard
abstract fun getName(): String
getPath
Link copied to clipboard
abstract fun getPath(name: String): String
getVersion
Link copied to clipboard
abstract fun getVersion(): String
hasSingleInstanceLock
Link copied to clipboard
abstract fun hasSingleInstanceLock(): Boolean
hide
Link copied to clipboard
abstract fun hide()
importCertificate
Link copied to clipboard
abstract fun importCertificate(options: ImportCertificateOptions, callback: (result: Number) -> Unit)
invalidateCurrentActivity
Link copied to clipboard
abstract fun invalidateCurrentActivity()
isAccessibilitySupportEnabled
Link copied to clipboard
abstract fun isAccessibilitySupportEnabled(): Boolean
isDefaultProtocolClient
Link copied to clipboard
abstract fun isDefaultProtocolClient(protocol: String, path: String = definedExternally, args: Array<String> = definedExternally): Boolean
isEmojiPanelSupported
Link copied to clipboard
abstract fun isEmojiPanelSupported(): Boolean
isInApplicationsFolder
Link copied to clipboard
abstract fun isInApplicationsFolder(): Boolean
isReady
Link copied to clipboard
abstract fun isReady(): Boolean
isUnityRunning
Link copied to clipboard
abstract fun isUnityRunning(): Boolean
listenerCount
Link copied to clipboard
open fun listenerCount(type: Any): Number
open fun listenerCount(type: String): Number
listeners
Link copied to clipboard
open fun listeners(event: Any): Array<Function<*>>
open fun listeners(event: String): Array<Function<*>>
moveToApplicationsFolder
Link copied to clipboard
abstract fun moveToApplicationsFolder(options: MoveToApplicationsFolderOptions = definedExternally): Boolean
off
Link copied to clipboard
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
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
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
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
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
abstract fun quit()
rawListeners
Link copied to clipboard
open fun rawListeners(event: Any): Array<Function<*>>
open fun rawListeners(event: String): Array<Function<*>>
relaunch
Link copied to clipboard
abstract fun relaunch(options: RelaunchOptions = definedExternally)
releaseSingleInstanceLock
Link copied to clipboard
abstract fun releaseSingleInstanceLock()
removeAllListeners
Link copied to clipboard
open fun removeAllListeners(event: Any = definedExternally): EventEmitter
open fun removeAllListeners(event: String = definedExternally): EventEmitter
removeAsDefaultProtocolClient
Link copied to clipboard
abstract fun removeAsDefaultProtocolClient(protocol: String, path: String = definedExternally, args: Array<String> = definedExternally): Boolean
removeListener
Link copied to clipboard
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
abstract fun requestSingleInstanceLock(): Boolean
resignCurrentActivity
Link copied to clipboard
abstract fun resignCurrentActivity()
setAboutPanelOptions
Link copied to clipboard
abstract fun setAboutPanelOptions(options: AboutPanelOptionsOptions)
setAccessibilitySupportEnabled
Link copied to clipboard
abstract fun setAccessibilitySupportEnabled(enabled: Boolean)
setAppLogsPath
Link copied to clipboard
abstract fun setAppLogsPath(path: String = definedExternally)
setAppUserModelId
Link copied to clipboard
abstract fun setAppUserModelId(id: String)
setAsDefaultProtocolClient
Link copied to clipboard
abstract fun setAsDefaultProtocolClient(protocol: String, path: String = definedExternally, args: Array<String> = definedExternally): Boolean
setBadgeCount
Link copied to clipboard
abstract fun setBadgeCount(count: Number): Boolean
setJumpList
Link copied to clipboard
abstract fun setJumpList(categories: Array<JumpListCategory>?)
setLoginItemSettings
Link copied to clipboard
abstract fun setLoginItemSettings(settings: Settings)
setMaxListeners
Link copied to clipboard
open fun setMaxListeners(n: Number): EventEmitter
setName
Link copied to clipboard
abstract fun setName(name: String)
setPath
Link copied to clipboard
abstract fun setPath(name: String, path: String)
setUserActivity
Link copied to clipboard
abstract fun setUserActivity(type: String, userInfo: Any, webpageURL: String = definedExternally)
setUserTasks
Link copied to clipboard
abstract fun setUserTasks(tasks: Array<Task>): Boolean
show
Link copied to clipboard
abstract fun show()
showAboutPanel
Link copied to clipboard
abstract fun showAboutPanel()
showEmojiPanel
Link copied to clipboard
abstract fun showEmojiPanel()
startAccessingSecurityScopedResource
Link copied to clipboard
abstract fun startAccessingSecurityScopedResource(bookmarkData: String): Function<*>
updateCurrentActivity
Link copied to clipboard
abstract fun updateCurrentActivity(type: String, userInfo: Any)
whenReady
Link copied to clipboard
abstract fun whenReady(): Promise<Unit>

Properties

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