Package-level declarations

Types

Link copied to clipboard
@Serializable
data class FileHandler(val action: String, val accepts: List<FileHandlerAccept>, val displayName: String)

(undocumented in the protocol definition)

Link copied to clipboard
@Serializable
data class FileHandlerAccept(val mediaType: String, val fileExtensions: List<String>)

The following types are the replica of https://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67

Link copied to clipboard
@Serializable
data class GetOsAppStateRequest(val manifestId: String)

Request object containing input parameters for the PWADomain.getOsAppState command.

Link copied to clipboard
@Serializable
data class GetOsAppStateResponse(val badgeCount: Int, val fileHandlers: List<FileHandler>)

Response type for the PWADomain.getOsAppState command.

Link copied to clipboard
class PWADomain

This domain allows interacting with the browser to control PWAs.