App

external interface App : EventEmitter

Properties

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

Functions

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
Link copied to clipboard
abstract fun addRecentDocument(path: String)
Link copied to clipboard
abstract fun clearRecentDocuments()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun emit(event: Any, vararg args: Any): Boolean
open fun emit(event: String, vararg args: Any): Boolean
Link copied to clipboard
abstract fun enableSandbox()
Link copied to clipboard
open fun eventNames(): Array<dynamic>
Link copied to clipboard
abstract fun exit(exitCode: Number = definedExternally)
Link copied to clipboard
abstract fun focus(options: FocusOptions = definedExternally)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getAppPath(): String
Link copied to clipboard
abstract fun getBadgeCount(): Number
Link copied to clipboard
Link copied to clipboard
abstract fun getFileIcon(path: String, options: FileIconOptions = definedExternally): <Error class: unknown class><NativeImage>
Link copied to clipboard
Link copied to clipboard
abstract fun getGPUInfo(infoType: String): <Error class: unknown class><Any>
Link copied to clipboard
Link copied to clipboard
abstract fun getLocale(): String
Link copied to clipboard
Link copied to clipboard
abstract fun getLoginItemSettings(options: LoginItemSettingsOptions = definedExternally): LoginItemSettings
Link copied to clipboard
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
abstract fun getPath(name: String): String
Link copied to clipboard
abstract fun getVersion(): String
Link copied to clipboard
Link copied to clipboard
abstract fun hide()
Link copied to clipboard
abstract fun importCertificate(options: ImportCertificateOptions, callback: (result: Number) -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun isDefaultProtocolClient(protocol: String, path: String = definedExternally, args: Array<String> = definedExternally): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun isReady(): Boolean
Link copied to clipboard
abstract fun isUnityRunning(): Boolean
Link copied to clipboard
open fun listenerCount(type: Any): Number
open fun listenerCount(type: String): Number
Link copied to clipboard
open fun listeners(event: Any): Array<Function<*>>
open fun listeners(event: String): Array<Function<*>>
Link copied to clipboard
abstract fun moveToApplicationsFolder(options: MoveToApplicationsFolderOptions = definedExternally): Boolean
Link copied to clipboard
open fun off(event: Any, listener: (args: Any) -> Unit): EventEmitter
open fun off(event: String, listener: (args: Any) -> Unit): EventEmitter
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
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
Link copied to clipboard
open fun prependListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
open fun prependListener(event: String, listener: (args: Any) -> Unit): EventEmitter
Link copied to clipboard
open fun prependOnceListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
open fun prependOnceListener(event: String, listener: (args: Any) -> Unit): EventEmitter
Link copied to clipboard
abstract fun quit()
Link copied to clipboard
open fun rawListeners(event: Any): Array<Function<*>>
open fun rawListeners(event: String): Array<Function<*>>
Link copied to clipboard
abstract fun relaunch(options: RelaunchOptions = definedExternally)
Link copied to clipboard
Link copied to clipboard
open fun removeAllListeners(event: Any = definedExternally): EventEmitter
open fun removeAllListeners(event: String = definedExternally): EventEmitter
Link copied to clipboard
abstract fun removeAsDefaultProtocolClient(protocol: String, path: String = definedExternally, args: Array<String> = definedExternally): Boolean
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
Link copied to clipboard
Link copied to clipboard
abstract fun resignCurrentActivity()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun setAppLogsPath(path: String = definedExternally)
Link copied to clipboard
abstract fun setAppUserModelId(id: String)
Link copied to clipboard
abstract fun setAsDefaultProtocolClient(protocol: String, path: String = definedExternally, args: Array<String> = definedExternally): Boolean
Link copied to clipboard
abstract fun setBadgeCount(count: Number): Boolean
Link copied to clipboard
abstract fun setJumpList(categories: Array<JumpListCategory>?)
Link copied to clipboard
abstract fun setLoginItemSettings(settings: Settings)
Link copied to clipboard
Link copied to clipboard
abstract fun setName(name: String)
Link copied to clipboard
abstract fun setPath(name: String, path: String)
Link copied to clipboard
abstract fun setUserActivity(type: String, userInfo: Any, webpageURL: String = definedExternally)
Link copied to clipboard
abstract fun setUserTasks(tasks: Array<Task>): Boolean
Link copied to clipboard
abstract fun show()
Link copied to clipboard
abstract fun showAboutPanel()
Link copied to clipboard
abstract fun showEmojiPanel()
Link copied to clipboard
abstract fun startAccessingSecurityScopedResource(bookmarkData: String): Function<*>
Link copied to clipboard
abstract fun updateCurrentActivity(type: String, userInfo: Any)
Link copied to clipboard
abstract fun whenReady(): <Error class: unknown class><Unit>