NotificationEvent

The NotificationEvent interface of the Notifications API represents a notification event dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.

MDN Reference

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The action read-only property of the NotificationEvent interface returns the string ID of the notification button the user clicked.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The notification read-only property of the NotificationEvent interface returns the instance of the Notification that was clicked to fire the event.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val type: EventType<NotificationEvent>

Functions

Link copied to clipboard
open override fun asInit(): NotificationEventInit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun waitUntil(f: Promise<*>)

The ExtendableEvent.waitUntil() method tells the event dispatcher that work is ongoing.