Class BackgroundFetchEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalBackgroundFetchEvent interface of the {{domxref('Background Fetch API', "", "", "nocode")}} is the event type for background fetch events dispatched on the {{domxref("ServiceWorkerGlobalScope", "service worker global scope", "", "nocode")}}.
[Value("BackgroundFetchEvent")]
public class BackgroundFetchEvent : ExtendableEvent
- Inheritance
-
BackgroundFetchEvent
- Derived
- Inherited Members
Remarks
It is the event type passed to ServiceWorkerGlobalScopebackgroundfetchclick event and ServiceWorkerGlobalScopebackgroundfetchabort event.
Constructors
BackgroundFetchEvent()
public BackgroundFetchEvent()
BackgroundFetchEvent(string, BackgroundFetchEventInit)
NOTE
ExperimentalBackgroundFetchEvent() constructor creates a new BackgroundFetchEvent object. This constructor is not typically used as the browser creates these objects itself and provides them to background fetch event callbacks.
public BackgroundFetchEvent(string type, BackgroundFetchEventInit init)
Parameters
typestringinitBackgroundFetchEventInit
Remarks
Properties
Registration
NOTE
Experimentalregistration read-only property of the BackgroundFetchEvent interface returns a BackgroundFetchRegistration object.
[Value("registration")]
public BackgroundFetchRegistration Registration { get; }