kvision / pl.treksoft.kvision.electron / Notification

Notification

open external class Notification : EventEmitter

Constructors

<init>

Notification(options: NotificationConstructorOptions)

Functions

addListener

open fun addListener(event: String, listener: (event: Event, index: Number) -> Unit): Notification
open fun addListener(event: String, listener: (event: Event) -> Unit): Notification
open fun addListener(event: String, listener: (event: Event) -> Unit): Notification
open fun addListener(event: String, listener: (event: Event, reply: String) -> Unit): Notification
open fun addListener(event: String, listener: (event: Event) -> Unit): Notification

close

open fun close(): Unit

on

open fun on(event: String, listener: (event: Event, index: Number) -> Unit): Notification
open fun on(event: String, listener: (event: Event) -> Unit): Notification
open fun on(event: String, listener: (event: Event) -> Unit): Notification
open fun on(event: String, listener: (event: Event, reply: String) -> Unit): Notification
open fun on(event: String, listener: (event: Event) -> Unit): Notification

once

open fun once(event: String, listener: (event: Event, index: Number) -> Unit): Notification
open fun once(event: String, listener: (event: Event) -> Unit): Notification
open fun once(event: String, listener: (event: Event) -> Unit): Notification
open fun once(event: String, listener: (event: Event, reply: String) -> Unit): Notification
open fun once(event: String, listener: (event: Event) -> Unit): Notification

removeListener

open fun removeListener(event: String, listener: (event: Event, index: Number) -> Unit): Notification
open fun removeListener(event: String, listener: (event: Event) -> Unit): Notification
open fun removeListener(event: String, listener: (event: Event) -> Unit): Notification
open fun removeListener(event: String, listener: (event: Event, reply: String) -> Unit): Notification
open fun removeListener(event: String, listener: (event: Event) -> Unit): Notification

show

open fun show(): Unit

Inherited 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

Companion Object Functions

isSupported

fun isSupported(): Boolean

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.