ExtendableEvent Class
An event whose lifetime can be extended by promises (https://w3c.github.io/ServiceWorker/#extendableevent-interface): the lifecycle events (install, activate) and the functional events of the service workers.
public class ExtendableEvent : Event- Inheritance
EventExtendableEvent
Constructors
| Name | Description |
|---|---|
| ExtendableEvent(string, ExtendableEventInit?) | Creates an extendable event. |
ExtendableEvent(string, ExtendableEventInit?)
ExtendableEvents.csCreates an extendable event.
public ExtendableEvent(string type, ExtendableEventInit? eventInitDict = null)Methods
| Name | Description |
|---|---|
| WaitUntil(Task<object?>) | Extends the lifetime of the event until the promise settles (https://w3c.github.io/ServiceWorker/#dom-extendableevent-waituntil). |
WaitUntil(Task<object?>)
ExtendableEvents.csExtends the lifetime of the event until the promise settles (https://w3c.github.io/ServiceWorker/#dom-extendableevent-waituntil).
Parameters
Exceptions
DomException- An
InvalidStateErrorwhen the event is not trusted or not active.