external interface IpcRenderer : EventEmitter
abstract fun on(event: String, listener: Function<*>): IpcRenderer |
|
abstract fun once(event: String, listener: Function<*>): IpcRenderer |
|
abstract fun removeAllListeners(channel: String): IpcRenderer |
|
abstract fun removeListener(event: String, listener: Function<*>): IpcRenderer |
|
abstract fun send(channel: String, vararg args: Any): Unit |
|
abstract fun sendSync(channel: String, vararg args: Any): Any |
|
abstract fun sendTo(windowId: Number, channel: String, vararg args: Any): Unit |
|
abstract fun sendToHost(channel: String, vararg args: Any): Unit |
open fun addListener(event: String, listener: Function<*>): EventEmitter |
|
open fun emit(event: String, vararg args: Any): Boolean |
|
open fun eventNames(): Array<String> |
|
open fun getMaxListeners(): Number |
|
open fun listenerCount(type: String): Number |
|
open fun listeners(event: String): Array<Function<*>> |
|
open fun prependListener(event: String, listener: Function<*>): EventEmitter |
|
open fun prependOnceListener(event: String, listener: Function<*>): EventEmitter |
|
open fun removeAllListeners(event: String? = definedExternally): EventEmitter |
|
open fun setMaxListeners(n: Number): EventEmitter |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |