Package org.w3c.notifications

Kotlin JavaScript wrappers for the Web Notifications API .

Types

JS
1.1

GetNotificationOptions

interface GetNotificationOptions
JS
1.1

Notification

Exposes the JavaScript Notification to Kotlin

open class Notification : EventTarget
JS
1.1

NotificationAction

interface NotificationAction
JS
1.1

NotificationDirection

interface NotificationDirection
JS
1.1

NotificationEvent

Exposes the JavaScript NotificationEvent to Kotlin

open class NotificationEvent : ExtendableEvent
JS
1.1

NotificationEventInit

interface NotificationEventInit : ExtendableEventInit
JS
1.1

NotificationOptions

interface NotificationOptions
JS
1.1

NotificationPermission

interface NotificationPermission

Functions

JS
1.1

GetNotificationOptions

fun GetNotificationOptions (
tag : String ? = ""
) : GetNotificationOptions
JS
1.1

NotificationAction

fun NotificationAction (
action : String ? ,
title : String ? ,
icon : String ? = undefined
) : NotificationAction
JS
1.1

NotificationEventInit

fun NotificationEventInit (
notification : Notification ? ,
action : String ? = "" ,
bubbles : Boolean ? = false ,
cancelable : Boolean ? = false ,
composed : Boolean ? = false
) : NotificationEventInit
JS
1.1

NotificationOptions

fun NotificationOptions (
dir : NotificationDirection ? = NotificationDirection.AUTO ,
lang : String ? = "" ,
body : String ? = "" ,
tag : String ? = "" ,
image : String ? = undefined ,
icon : String ? = undefined ,
badge : String ? = undefined ,
sound : String ? = undefined ,
vibrate : dynamic = undefined ,
timestamp : Number ? = undefined ,
renotify : Boolean ? = false ,
silent : Boolean ? = false ,
noscreen : Boolean ? = false ,
requireInteraction : Boolean ? = false ,
sticky : Boolean ? = false ,
data : Any ? = null ,
actions : Array < NotificationAction > ? = arrayOf()
) : NotificationOptions

Companion Object Properties

JS
1.1

AUTO

val NotificationDirection.Companion . AUTO : NotificationDirection
JS
1.1

DEFAULT

val NotificationPermission.Companion . DEFAULT : NotificationPermission
JS
1.1

DENIED

val NotificationPermission.Companion . DENIED : NotificationPermission
JS
1.1

GRANTED

val NotificationPermission.Companion . GRANTED : NotificationPermission
JS
1.1

LTR

val NotificationDirection.Companion . LTR : NotificationDirection
JS
1.1

RTL

val NotificationDirection.Companion . RTL : NotificationDirection