CookieStoreManager class

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the Cookie Store API allows service workers to subscribe to events for cookie changes. By using the subscribe() method a particular service worker registration can indicate that it is interested in change events. A has an associated ServiceWorkerRegistration. Each service worker registration has a cookie change subscription list, which is a list of cookie change subscriptions each containing a name and url. The methods in this interface allow the service worker to add and remove subscriptions from this list, and to get a list of all subscriptions. To get a , call ServiceWorkerRegistration.cookies.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

CookieStoreManager()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getSubscriptions() Future<Iterable<CookieStoreGetOptions>>

Available on CookieStoreManager, provided by the PropsCookieStoreManager extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe(Iterable<CookieStoreGetOptions> subscriptions) Future<void>

Available on CookieStoreManager, provided by the PropsCookieStoreManager extension

toString() String
A string representation of this object.
inherited
unsubscribe(Iterable<CookieStoreGetOptions> subscriptions) Future<void>

Available on CookieStoreManager, provided by the PropsCookieStoreManager extension

Operators

operator ==(Object other) bool
The equality operator.
inherited