Class BackgroundFetchUpdateUIEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalBackgroundFetchUpdateUIEvent 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
ExperimentalBackgroundFetchUpdateUIEvent() 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
typestringinitBackgroundFetchEventInit
Remarks
Methods
UpdateUI(BackgroundFetchUIOptions)
NOTE
ExperimentalupdateUI() 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
optionsBackgroundFetchUIOptions
Returns
Remarks
This method may only be run once, to notify the user on a failed or a successful fetch.