Table of Contents

Class LaunchParams

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The LaunchParams interface of the {{domxref("Launch Handler API", "Launch Handler API", "", "nocode")}} is used when implementing custom launch navigation handling in a PWA. When SetConsumer(LaunchConsumer) is invoked to set up the launch navigation handling functionality, the callback function inside setConsumer() is passed a LaunchParams object instance.
[Value("LaunchParams")]
public class LaunchParams
Inheritance
LaunchParams
Inherited Members

Remarks

Such custom navigation handling is initiated via LaunchQueue when a PWA has been launched with a launch_handler client_mode value of focus-existing, navigate-new, or navigate-existing.

-Launch Handler API: Control how your app is launched
-LaunchQueue
-Musicr 2.0 demo app

See also on MDN

Constructors

LaunchParams()

public LaunchParams()

Properties

Files

NOTE
Experimental
The files read-only property of the LaunchParams interface returns an array of FileSystemHandle objects representing any files passed along with the launch navigation via the POST method.
[Value("files")]
public FileSystemHandle[] Files { get; }

Property Value

FileSystemHandle[]

A read-only array of FileSystemHandle objects.

Remarks

TargetURL

NOTE
Experimental
The targetURL read-only property of the LaunchParams interface returns the target URL of the associated web app launch.
[Value("targetURL")]
public string? TargetURL { get; }

Property Value

string

A string.

Remarks