CookieStoreManager

The CookieStoreManager interface of the Cookie Store API allows service workers to subscribe to cookie change events. Available only in secure contexts.

MDN Reference

Functions

Link copied to clipboard

The getSubscriptions() method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.

Link copied to clipboard
suspend fun subscribe(subscriptions: ReadonlyArray<CookieStoreGetOptions>)

The subscribe() method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.

Link copied to clipboard
Link copied to clipboard
suspend fun unsubscribe(subscriptions: ReadonlyArray<CookieStoreGetOptions>)

The unsubscribe() method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.

Link copied to clipboard