CookieStoreManager extension type
@AvailableInWorkers("window_and_service")
The CookieStoreManager
interface of the Cookie Store API
allows
service workers to subscribe to cookie change events. Call
CookieStoreManager.subscribe on a particular service worker registration
to receive change events.
A CookieStoreManager
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 CookieStoreManager
, call ServiceWorkerRegistration.cookies
.
API documentation sourced from MDN Web Docs.
- on
- Implemented types
- Available extensions
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(
) → JSPromise< JSArray< CookieStoreGetOptions> > - @AvailableInWorkers("window_and_service")
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subscribe(
JSArray< CookieStoreGetOptions> subscriptions) → JSPromise<JSAny?> - @AvailableInWorkers("window_and_service")
-
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribe(
JSArray< CookieStoreGetOptions> subscriptions) → JSPromise<JSAny?> - @AvailableInWorkers("window_and_service")
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited