toggle menu
kilua-project
0.0.17
common
switch theme
search in API
kilua-dom
/
web.notifications
/
Notification
Notification
open
class
Notification
(
title
:
String
,
options
:
NotificationOptions
)
:
EventTarget
,
JsAny
Exposes the JavaScript
Notification
to Kotlin
Members
Constructors
Notification
Link copied to clipboard
constructor
(
title
:
String
,
options
:
NotificationOptions
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
actions
Link copied to clipboard
open
val
actions
:
JsArray
<
out
NotificationAction
>
badge
Link copied to clipboard
open
val
badge
:
String
body
Link copied to clipboard
open
val
body
:
String
data
Link copied to clipboard
open
val
data
:
JsAny
?
dir
Link copied to clipboard
open
val
dir
:
NotificationDirection
icon
Link copied to clipboard
open
val
icon
:
String
image
Link copied to clipboard
open
val
image
:
String
lang
Link copied to clipboard
open
val
lang
:
String
noscreen
Link copied to clipboard
open
val
noscreen
:
Boolean
onclick
Link copied to clipboard
var
onclick
:
(
MouseEvent
)
->
Unit
?
onerror
Link copied to clipboard
var
onerror
:
(
Event
)
->
Unit
?
renotify
Link copied to clipboard
open
val
renotify
:
Boolean
require
Interaction
Link copied to clipboard
open
val
requireInteraction
:
Boolean
silent
Link copied to clipboard
open
val
silent
:
Boolean
sound
Link copied to clipboard
open
val
sound
:
String
sticky
Link copied to clipboard
open
val
sticky
:
Boolean
tag
Link copied to clipboard
open
val
tag
:
String
timestamp
Link copied to clipboard
open
val
timestamp
:
JsNumber
title
Link copied to clipboard
open
val
title
:
String
vibrate
Link copied to clipboard
open
val
vibrate
:
JsArray
<
out
JsNumber
>
Functions
add
Event
Listener
Link copied to clipboard
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
)
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
Boolean
)
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
AddEventListenerOptions
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
Boolean
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
AddEventListenerOptions
)
close
Link copied to clipboard
fun
close
(
)
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
remove
Event
Listener
Link copied to clipboard
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
)
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
Boolean
)
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
EventListenerOptions
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
Boolean
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
EventListenerOptions
)