launch_handler
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Type | Object |
---|
The launch_handler
member defines values that control the launch of a web application. Currently it can only contain a single value, client_mode
, which specifies the context in which the app should be loaded when launched. For example, in an existing web app client containing an instance of the app, or in a new web app client. This leaves scope for more launch_handler
values to be defined in the future.
launch_handler item values
launch_handler
objects may contain the following values:
Member | Description |
---|---|
client_mode |
A string, or comma-separated array of strings, which specifies the context in which the app should be loaded when launched. If an array of strings is provided, the first valid value is used. Possible values are:
|
Examples
json
"launch_handler": {
"client_mode": "focus-existing"
}
"launch_handler": {
"client_mode": ["focus-existing, auto"]
}
Specifications
Specification |
---|
Web App Launch Handler API # launch_handler-member |
Browser compatibility
BCD tables only load in the browser