background_fetch library Null safety
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 to
- The interface of the Background Fetch API is a map where the keys are background fetch IDs and the values are BackgroundFetchRegistration objects.
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
- 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.
The interface of the Background Fetch API is an event type
ServiceWorkerGlobalScope.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.