Table of Contents

Class BackgroundFetchManager

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The BackgroundFetchManager 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
Experimental
The fetch() 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

id string
requests Union0
options BackgroundFetchOptions

Returns

Task<BackgroundFetchRegistration>

A {{jsxref("Promise")}} that resolves with a BackgroundFetchRegistration object.

Remarks

Get(string)

NOTE
Experimental
The get() 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

id string

Returns

Task<BackgroundFetchRegistration>

A {{jsxref("Promise")}} that resolves with a BackgroundFetchRegistration or {{jsxref("undefined")}}.

Remarks

GetIds()

NOTE
Experimental
The getIds() method of the BackgroundFetchManager interface returns the IDs of all registered background fetches.
[Value("getIds")]
public Task<List<string>> GetIds()

Returns

Task<List<string>>

A Promise that resolves with an 'Array' of 'String'.

Remarks