Class: PersistenceRegistration

PersistenceRegistration

PersistenceRegistration constructor

Constructor

new PersistenceRegistration(scope, persistenceManager)

Parameters:
Name Type Description
scope string The URI which should be persisted
persistenceManager Object
Source:

Methods

##addEventListener(type, listener)

Add an event listener.
Parameters:
Name Type Description
type string A string representing the event type to listen for. Supported value is "fetch" which will trigger the function with a FetchEvent once a fetch occurs.
listener function The object that receives a notification when an event of the specified type occurs
Source:

##unregister() → {Promise}

Unregister the registration. Will finish any ongoing operations before it is unregistered.
Source:
Returns:
Promise resolves with a boolean indicating whether the scope has been unregistered or not
Type
Promise