toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-electron
/
electron.core
/
Notification
/
once
once
fun
once
(
event
:
NotificationEvent.ACTION
,
listener
:
(
event
:
Event
<
*
>
,
index
:
Double
)
->
Unit
)
(
source
)
fun
once
(
event
:
NotificationEvent.CLICK
,
listener
:
(
event
:
Event
<
*
>
)
->
Unit
)
(
source
)
fun
once
(
event
:
NotificationEvent.CLOSE
,
listener
:
(
event
:
Event
<
*
>
)
->
Unit
)
(
source
)
fun
once
(
event
:
NotificationEvent.FAILED
,
listener
:
(
event
:
Event
<
*
>
,
error
:
String
)
->
Unit
)
(
source
)
fun
once
(
event
:
NotificationEvent.REPLY
,
listener
:
(
event
:
Event
<
*
>
,
reply
:
String
)
->
Unit
)
(
source
)
fun
once
(
event
:
NotificationEvent.SHOW
,
listener
:
(
event
:
Event
<
*
>
)
->
Unit
)
(
source
)