Class BackgroundFetchManager
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalBackgroundFetchManager interface of the 'Background Fetch API' is a map where the keys are background fetch IDs and the values are BackgroundFetchRegistration objects.
[Value("BackgroundFetchManager")]
public class BackgroundFetchManager
- Inheritance
-
BackgroundFetchManager
- Inherited Members
Remarks
Constructors
BackgroundFetchManager()
public BackgroundFetchManager()
Methods
Fetch(string, Union0, BackgroundFetchOptions)
NOTE
Experimentalfetch() method of the BackgroundFetchManager interface initiates a background fetch operation, given one or more URLs or Request objects.
[Value("fetch")]
public Task<BackgroundFetchRegistration> Fetch(string id, Union0 requests, BackgroundFetchOptions options = null)
Parameters
idstringrequestsUnion0optionsBackgroundFetchOptions
Returns
- Task<BackgroundFetchRegistration>
A {{jsxref("Promise")}} that resolves with a BackgroundFetchRegistration object.
Remarks
Get(string)
NOTE
Experimentalget() method of the BackgroundFetchManager interface returns a {{jsxref("Promise")}} that resolves with the BackgroundFetchRegistration associated with the provided id or GlobalObject.Undefined if the id is not found.
[Value("get")]
public Task<BackgroundFetchRegistration?> Get(string id)
Parameters
idstring
Returns
- Task<BackgroundFetchRegistration>
A {{jsxref("Promise")}} that resolves with a BackgroundFetchRegistration or {{jsxref("undefined")}}.
Remarks
GetIds()
NOTE
ExperimentalgetIds() method of the BackgroundFetchManager interface returns the IDs of all registered background fetches.
[Value("getIds")]
public Task<List<string>> GetIds()