kvision / pl.treksoft.kvision.electron / EventEmitter

EventEmitter

open external class EventEmitter

Constructors

<init>

EventEmitter()

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.

Inheritors

App

external interface App : EventEmitter

AutoUpdater

external interface AutoUpdater : EventEmitter

BrowserView

open external class BrowserView : EventEmitter

BrowserWindow

open external class BrowserWindow : EventEmitter

BrowserWindowProxy

open external class BrowserWindowProxy : EventEmitter

ClientRequest

open external class ClientRequest : EventEmitter

Clipboard

external interface Clipboard : EventEmitter

ContentTracing

external interface ContentTracing : EventEmitter

Cookies

open external class Cookies : EventEmitter

CrashReporter

external interface CrashReporter : EventEmitter

Debugger

open external class Debugger : EventEmitter

DesktopCapturer

external interface DesktopCapturer : EventEmitter

Dialog

external interface Dialog : EventEmitter

DownloadItem

open external class DownloadItem : EventEmitter

GlobalShortcut

external interface GlobalShortcut : EventEmitter

InAppPurchase

external interface InAppPurchase : EventEmitter

IncomingMessage

open external class IncomingMessage : EventEmitter

IpcMain

external interface IpcMain : EventEmitter

IpcRenderer

external interface IpcRenderer : EventEmitter

Net

external interface Net : EventEmitter

Notification

open external class Notification : EventEmitter

PowerMonitor

external interface PowerMonitor : EventEmitter

PowerSaveBlocker

external interface PowerSaveBlocker : EventEmitter

Process

external interface Process : EventEmitter

Protocol

external interface Protocol : EventEmitter

Screen

external interface Screen : EventEmitter

Session

open external class Session : EventEmitter

SystemPreferences

external interface SystemPreferences : EventEmitter

TouchBar

open external class TouchBar : EventEmitter

TouchBarButton

open external class TouchBarButton : EventEmitter

TouchBarColorPicker

open external class TouchBarColorPicker : EventEmitter

TouchBarGroup

open external class TouchBarGroup : EventEmitter

TouchBarLabel

open external class TouchBarLabel : EventEmitter

TouchBarPopover

open external class TouchBarPopover : EventEmitter

TouchBarScrubber

open external class TouchBarScrubber : EventEmitter

TouchBarSegmentedControl

open external class TouchBarSegmentedControl : EventEmitter

TouchBarSlider

open external class TouchBarSlider : EventEmitter

TouchBarSpacer

open external class TouchBarSpacer : EventEmitter

Tray

open external class Tray : EventEmitter

WebContents

open external class WebContents : EventEmitter

WebFrame

external interface WebFrame : EventEmitter

WebRequest

open external class WebRequest : EventEmitter