kvision / pl.treksoft.kvision.electron / Notification

Notification

(js) open class Notification : EventEmitter

Constructors

(js)

<init>

Notification(options: NotificationConstructorOptions)

Functions

(js)

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, reply: String) -> Unit): Notification
(js)

close

open fun close(): Unit
(js)

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, reply: String) -> Unit): Notification
(js)

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, reply: String) -> Unit): Notification
(js)

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, reply: String) -> Unit): Notification
(js)

show

open fun show(): Unit

Companion Object Functions

(js)

isSupported

fun isSupported(): Boolean