PushSubscriptionChangeEvent

Available only in secure contexts.

Constructors

Link copied to clipboard
constructor(type: EventType<PushSubscriptionChangeEvent>, init: PushSubscriptionChangeEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open external val bubbles: Boolean
Link copied to clipboard
open external val cancelable: Boolean
Link copied to clipboard
open external val composed: Boolean
Link copied to clipboard
open external val currentTarget: EventTarget?
Link copied to clipboard
open external val defaultPrevented: Boolean
Link copied to clipboard
open external val eventPhase: EventPhase
Link copied to clipboard
external val isTrusted: Boolean
Link copied to clipboard
open external val newSubscription: PushSubscription?
Link copied to clipboard
open external val oldSubscription: PushSubscription?
Link copied to clipboard
open external val target: EventTarget?
Link copied to clipboard
open external val timeStamp: DOMHighResTimeStamp
Link copied to clipboard
open external override val type: EventType<PushSubscriptionChangeEvent>

Functions

Link copied to clipboard
open external fun composedPath(): ReadonlyArray<EventTarget>
Link copied to clipboard
open external fun preventDefault()
Link copied to clipboard
open external fun stopImmediatePropagation()
Link copied to clipboard
open external fun stopPropagation()
Link copied to clipboard
open external fun waitUntil(f: Promise<*>)

The ExtendableEvent.waitUntil() method tells the event dispatcher that work is ongoing. It can also be used to detect whether that work was successful. In service workers, waitUntil() tells the browser that work is ongoing until the promise settles, and it shouldn't terminate the service worker if it wants that work to complete.

Link copied to clipboard
fun ExtendableEvent.waitUntil(block: suspend CoroutineScope.() -> Unit)

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