WebAppManifest

@Serializable
data class WebAppManifest(val backgroundColor: String? = null, val description: String? = null, val dir: String? = null, val display: String? = null, val displayOverrides: List<String>? = null, val fileHandlers: List<FileHandler>? = null, val icons: List<ImageResource>? = null, val id: String? = null, val lang: String? = null, val launchHandler: LaunchHandler? = null, val name: String? = null, val orientation: String? = null, val preferRelatedApplications: Boolean? = null, val protocolHandlers: List<ProtocolHandler>? = null, val relatedApplications: List<RelatedApplication>? = null, val scope: String? = null, val scopeExtensions: List<ScopeExtension>? = null, val screenshots: List<Screenshot>? = null, val shareTarget: ShareTarget? = null, val shortName: String? = null, val shortcuts: List<Shortcut>? = null, val startUrl: String? = null, val themeColor: String? = null)

(undocumented in the protocol definition)

Official doc

Constructors

Link copied to clipboard
constructor(backgroundColor: String? = null, description: String? = null, dir: String? = null, display: String? = null, displayOverrides: List<String>? = null, fileHandlers: List<FileHandler>? = null, icons: List<ImageResource>? = null, id: String? = null, lang: String? = null, launchHandler: LaunchHandler? = null, name: String? = null, orientation: String? = null, preferRelatedApplications: Boolean? = null, protocolHandlers: List<ProtocolHandler>? = null, relatedApplications: List<RelatedApplication>? = null, scope: String? = null, scopeExtensions: List<ScopeExtension>? = null, screenshots: List<Screenshot>? = null, shareTarget: ShareTarget? = null, shortName: String? = null, shortcuts: List<Shortcut>? = null, startUrl: String? = null, themeColor: String? = null)

Properties

Link copied to clipboard
val backgroundColor: String? = null

(undocumented in the protocol definition)

Link copied to clipboard
val description: String? = null

The extra description provided by the manifest.

Link copied to clipboard
val dir: String? = null

(undocumented in the protocol definition)

Link copied to clipboard
val display: String? = null

(undocumented in the protocol definition)

Link copied to clipboard

The overrided display mode controlled by the user.

Link copied to clipboard

The handlers to open files.

Link copied to clipboard
val icons: List<ImageResource>? = null

(undocumented in the protocol definition)

Link copied to clipboard
val id: String? = null

(undocumented in the protocol definition)

Link copied to clipboard
val lang: String? = null

(undocumented in the protocol definition)

Link copied to clipboard

TODO(crbug.com/1231886): This field is non-standard and part of a Chrome experiment. See: https://github.com/WICG/web-app-launch/blob/main/launch_handler.md

Link copied to clipboard
val name: String? = null

(undocumented in the protocol definition)

Link copied to clipboard
val orientation: String? = null

(undocumented in the protocol definition)

Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard

The handlers to open protocols.

Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard
val scope: String? = null

(undocumented in the protocol definition)

Link copied to clipboard

Non-standard, see https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md

Link copied to clipboard

The screenshots used by chromium.

Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard
val shortcuts: List<Shortcut>? = null

(undocumented in the protocol definition)

Link copied to clipboard
val shortName: String? = null

(undocumented in the protocol definition)

Link copied to clipboard
val startUrl: String? = null

(undocumented in the protocol definition)

Link copied to clipboard
val themeColor: String? = null

(undocumented in the protocol definition)