Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.35 KB

File metadata and controls

20 lines (13 loc) · 1.35 KB

LaunchQueue

Namespace: SpawnDev.SpawnJS.JSObjects
Inherits: SpawnJSObject
Source: JSObjects/LaunchQueue.cs

The LaunchQueue interface of the Launch Handler API is available via the Window.launchQueue property. When a progressive web app (PWA) is launched with a launch_handler client_mode value of focus-existing, navigate-new, or navigate-existing, LaunchQueue provides access to functionality that allows custom launch navigation handling to be implemented in the PWA. This functionality is controlled by the properties of the LaunchParams object passed into the setConsumer() callback function.

Constructors

Signature Description
LaunchQueue(SpawnJSObjectReference _ref) Deserialization constructor

Methods

Method Return Type Description
SetConsumer(ActionCallback<LaunchParams> callback) void The setConsumer() method of the LaunchQueue interface is used to declare the callback that will handle custom launch navigation handling in a progressive web app (PWA). Such custom navigation is initiated via Window.launchQueue when a PWA has been launched with a launch_handler client_mode value of focus-existing, navigate-new, or navigate-existing A callback function that handles custom navigation for the PWA. The callback is passed a LaunchParams object instance as a parameter.