Table of Contents

Class BackgroundFetchUpdateUIEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The BackgroundFetchUpdateUIEvent interface of the 'Background Fetch API' is an event type for the ServiceWorkerGlobalScope.Backgroundfetchsuccess and ServiceWorkerGlobalScope.Backgroundfetchfail events, 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.
[Value("BackgroundFetchUpdateUIEvent")]
public class BackgroundFetchUpdateUIEvent : BackgroundFetchEvent
Inheritance
BackgroundFetchUpdateUIEvent
Inherited Members

Remarks

Constructors

BackgroundFetchUpdateUIEvent()

public BackgroundFetchUpdateUIEvent()

BackgroundFetchUpdateUIEvent(string, BackgroundFetchEventInit)

NOTE
Experimental
The BackgroundFetchUpdateUIEvent() constructor creates a new BackgroundFetchUpdateUIEvent object. This constructor is not typically used as the browser creates these objects itself and provides them to background fetch event callbacks.
public BackgroundFetchUpdateUIEvent(string type, BackgroundFetchEventInit init)

Parameters

type string
init BackgroundFetchEventInit

Remarks

Methods

UpdateUI(BackgroundFetchUIOptions)

NOTE
Experimental
The updateUI() method of the BackgroundFetchUpdateUIEvent interface updates the title and icon in the user interface to show the status of a background fetch.
[Value("updateUI")]
public Task<GlobalObject.Undefined> UpdateUI(BackgroundFetchUIOptions options = null)

Parameters

options BackgroundFetchUIOptions

Returns

Task<GlobalObject.Undefined>

A Promise.

Remarks

This method may only be run once, to notify the user on a failed or a successful fetch.

See also on MDN