service_worker library
Deprecated, import worker.dart instead. ignore: annotation_with_non_class
Classes
- Body
- Cache
- Represents the storage for Request / Response object pairs that are cached as part of the ServiceWorker life cycle.
- CacheOptions
- Type definitions for service_worker_api 0.0 Project: https://developer.mozilla.org/fr/docs/Web/API/ServiceWorker_API Definitions by: Tristan Caron github.com/tristancaron Definitions: https://github.com/borisyankov/DefinitelyTyped TypeScript Version: 2.1
- CacheStorage
- Represents the storage for Cache objects. It provides a master directory of all the named caches that a ServiceWorker can access and maintains a mapping of string names to corresponding Cache objects.
- ErrorEvent
- Event
- ExtendableEvent
- Extends the lifetime of the install and activate events dispatched on the ServiceWorkerGlobalScope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched to the ServiceWorker until it upgrades database schemas, deletes outdated cache entries, etc.
- ExtendableMessageEvent
- The ExtendableMessageEvent interface of the ServiceWorker API represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) — extends the lifetime of such events.
- FetchEvent
- The parameter passed into the ServiceWorkerGlobalScope.onfetch handler, FetchEvent represents a fetch action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. It contains information about the request and resulting response, and provides the FetchEvent.respondWith() method, which allows us to provide an arbitrary response back to the controlled page.
- Headers
- InstallEvent
- The parameter passed into the oninstall handler, the InstallEvent interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
- MessageEvent
- Notification
- The Notification interface of the Notifications API is used to configure and display desktop notifications to the user.
- NotificationEvent
- The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.
- PushEvent
- The PushEvent interface of the Push API represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.
- PushManager
- The PushManager interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. This interface has replaced functionality offered by the obsolete PushRegistrationManager.
- PushMessageData
- The PushMessageData interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats.
- PushSubscription
- The PushSubscription interface provides a subcription's URL endpoint and subscription ID.
- PushSubscriptionKeys
- Key values that may be stored in a PushSubscription.
- PushSubscriptionOptions
- Object containing optional subscribe parameters.
- Request
- RequestInit
- Response
- ServiceWorker
- Represents a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same ServiceWorker object.
- ServiceWorkerClient
- Represents the scope of a service worker client. A service worker client is either a document in a browser context or a SharedWorker, which is controlled by an active worker.
- ServiceWorkerClients
- Represents a container for a list of Client objects; the main way to access the active service worker clients at the current origin.
- ServiceWorkerClientsMatchOptions
- ServiceWorkerGlobalScope
- A ServiceWorkerGlobalScope object represents the global execution context of a service worker.
- ServiceWorkerRegisterOptions
- ServiceWorkerRegistration
- Represents a service worker registration.
- ShowNotificationAction
- ShowNotificationOptions
- WindowClient
- WorkerLocation
Properties
- globalScope → ServiceWorkerGlobalScope
-
API entry point for ServiceWorkers.
Deprecated, import worker.dart instead.
final