Notification

JS
1.1
open class Notification : EventTarget

Exposes the JavaScript Notification to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript Notification to Kotlin

Notification(
    title: String,
    options: NotificationOptions = definedExternally)

Properties

JS
1.1

actions

open val actions: Array<out NotificationAction>
JS
1.1

badge

open val badge: String
JS
1.1

body

open val body: String
JS
1.1

data

open val data: Any?
JS
1.1

dir

open val dir: NotificationDirection
JS
1.1

icon

open val icon: String
JS
1.1

image

open val image: String
JS
1.1

lang

open val lang: String
JS
1.1

noscreen

open val noscreen: Boolean
JS
1.1

onclick

var onclick: ((MouseEvent) -> dynamic)?
JS
1.1

onerror

var onerror: ((Event) -> dynamic)?
JS
1.1

renotify

open val renotify: Boolean
JS
1.1

requireInteraction

open val requireInteraction: Boolean
JS
1.1

silent

open val silent: Boolean
JS
1.1

sound

open val sound: String
JS
1.1

sticky

open val sticky: Boolean
JS
1.1

tag

open val tag: String
JS
1.1

timestamp

open val timestamp: Number
JS
1.1

title

open val title: String
JS
1.1

vibrate

open val vibrate: Array<out Int>

Functions

JS
1.1

close

fun close()

Companion Object Properties

JS
1.1

maxActions

val maxActions: Int
JS
1.1

permission

val permission: NotificationPermission

Companion Object Functions

JS
1.1

requestPermission

fun requestPermission(
    deprecatedCallback: (NotificationPermission) -> Unit = definedExternally
): Promise<NotificationPermission>