Notification

open class Notification(title: String, options: NotificationOptions) : EventTarget, JsAny

Exposes the JavaScript Notification to Kotlin

Constructors

Link copied to clipboard
constructor(title: String, options: NotificationOptions)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open val badge: String
Link copied to clipboard
open val body: String
Link copied to clipboard
open val data: JsAny?
Link copied to clipboard
Link copied to clipboard
open val icon: String
Link copied to clipboard
open val image: String
Link copied to clipboard
open val lang: String
Link copied to clipboard
open val noscreen: Boolean
Link copied to clipboard
Link copied to clipboard
var onerror: (Event) -> Unit?
Link copied to clipboard
open val renotify: Boolean
Link copied to clipboard
Link copied to clipboard
open val silent: Boolean
Link copied to clipboard
open val sound: String
Link copied to clipboard
open val sticky: Boolean
Link copied to clipboard
open val tag: String
Link copied to clipboard
Link copied to clipboard
open val title: String
Link copied to clipboard
open val vibrate: JsArray<out JsNumber>

Functions

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)
Link copied to clipboard
fun close()
Link copied to clipboard
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?)
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)