bindings/background_fetch library
Background Fetch
Classes
- BackgroundFetchEvent
-
The interface of the Background Fetch API is the event type for
background fetch events dispatched on the
service worker global scope
. It is the event type passed toonbackgroundfetchabort
andonbackgroundfetchclick
. - BackgroundFetchEventInit
- BackgroundFetchManager
- The interface of the Background Fetch API is a map where the keys are background fetch IDs and the values are BackgroundFetchRegistration objects.
- BackgroundFetchOptions
- BackgroundFetchRecord
-
The interface of the Background Fetch API represents an
individual request and response.
A is created by the BackgroundFetchManager.fetch() method,
therefore there is no constructor for this interface.
There will be one for each resource requested by
fetch()
. - BackgroundFetchRegistration
- The interface of the Background Fetch API represents an individual background fetch. A instance is returned by the BackgroundFetchManager.fetch() or BackgroundFetchManager.get() methods, and therefore there has no constructor.
- BackgroundFetchUIOptions
- BackgroundFetchUpdateUIEvent
-
The interface of the Background Fetch API is an event type
passed to
ServiceWorkerGlobalScope.onbackgroundfetchsuccess
andServiceWorkerGlobalScope.onbackgroundfetchfail
, and provides a method for updating the title and icon of the app to inform a user of the success or failure of a background fetch.
Extensions
- PropsBackgroundFetchEvent on BackgroundFetchEvent
- PropsBackgroundFetchEventInit on BackgroundFetchEventInit
- PropsBackgroundFetchManager on BackgroundFetchManager
- PropsBackgroundFetchOptions on BackgroundFetchOptions
- PropsBackgroundFetchRecord on BackgroundFetchRecord
- PropsBackgroundFetchRegistration on BackgroundFetchRegistration
- PropsBackgroundFetchUIOptions on BackgroundFetchUIOptions
- PropsBackgroundFetchUpdateUIEvent on BackgroundFetchUpdateUIEvent