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: Stringbody
open val body: Stringdata
open val data: Any?dir
open val dir: NotificationDirectionicon
open val icon: Stringimage
open val image: Stringlang
open val lang: Stringnoscreen
open val noscreen: Booleanonclick
var onclick: ((MouseEvent) -> dynamic)?renotify
open val renotify: BooleanrequireInteraction
open val requireInteraction: Booleansilent
open val silent: Booleansound
open val sound: Stringsticky
open val sticky: Booleantag
open val tag: Stringtitle
open val title: Stringvibrate
open val vibrate: Array<out Int>Functions
close
fun close()Companion Object Properties
maxActions
val maxActions: Intpermission
val permission: NotificationPermissionCompanion Object Functions
requestPermission
fun requestPermission(
deprecatedCallback: (NotificationPermission) -> Unit = definedExternally
): Promise<NotificationPermission>