Package-level declarations

Types

Link copied to clipboard
open class Client

The Client interface represents an executable context such as a Worker, or a SharedWorker.

Link copied to clipboard
Link copied to clipboard
class Clients

The Clients interface provides access to Client objects.

Link copied to clipboard
sealed interface ClientTypes
Link copied to clipboard
open class ExtendableEvent(val type: EventType<ExtendableEvent>, init: ExtendableEventInit = definedExternally) : Event

The ExtendableEvent interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle.

Link copied to clipboard
Link copied to clipboard
open class ExtendableMessageEvent(    val type: EventType<ExtendableMessageEvent>,     init: ExtendableMessageEventInit = definedExternally) : ExtendableEvent

The ExtendableMessageEvent interface of the Service Worker API represents the event object of a ServiceWorkerGlobalScope/message_event event fired on a service worker (when a message is received on the ServiceWorkerGlobalScope from another context) — extends the lifetime of such events.

Link copied to clipboard

This is the event type for fetch events dispatched on the ServiceWorkerGlobalScope.

Link copied to clipboard
Link copied to clipboard
sealed interface FrameType
Link copied to clipboard
Link copied to clipboard

The NavigationPreloadManager interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard

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

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

The ServiceWorker interface of the Service Worker API provides a reference to a service worker. Available only in secure contexts.

Link copied to clipboard

The ServiceWorkerContainer interface of the Service Worker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations. Available only in secure contexts.

Link copied to clipboard

The ServiceWorkerGlobalScope interface of the Service Worker API represents the global execution context of a service worker. Available only in secure contexts.

Link copied to clipboard

The ServiceWorkerRegistration interface of the Service Worker API represents the service worker registration. Available only in secure contexts.

Link copied to clipboard
sealed interface ServiceWorkerState
Link copied to clipboard
Link copied to clipboard

The WindowClient interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker.