Notification
Constructors
<init>
Exposes the JavaScript Notification to Kotlin
Notification
(
title
:
String
,
options
:
NotificationOptions
=
definedExternally
)
Properties
actions
open
val
actions
:
Array
<
out
NotificationAction
>
badge
open
val
badge
:
String
body
open
val
body
:
String
data
open
val
data
:
Any
?
dir
open
val
dir
:
NotificationDirection
icon
open
val
icon
:
String
image
open
val
image
:
String
lang
open
val
lang
:
String
noscreen
open
val
noscreen
:
Boolean
onclick
var
onclick
:
(
(
MouseEvent
)
->
dynamic
)
?
renotify
open
val
renotify
:
Boolean
requireInteraction
open
val
requireInteraction
:
Boolean
silent
open
val
silent
:
Boolean
sound
open
val
sound
:
String
sticky
open
val
sticky
:
Boolean
tag
open
val
tag
:
String
title
open
val
title
:
String
vibrate
open
val
vibrate
:
Array
<
out
Int
>
Functions
close
fun
close
(
)
Companion Object Properties
maxActions
val
maxActions
:
Int
permission
val
permission
:
NotificationPermission
Companion Object Functions
requestPermission
fun
requestPermission
(
deprecatedCallback
:
(
NotificationPermission
)
->
Unit
=
definedExternally
)
:
Promise
<
NotificationPermission
>