Package-level declarations

Types

Link copied to clipboard
@Serializable
data class ChangeAppUserSettingsRequest(val manifestId: String, val linkCapturing: Boolean? = null, val displayMode: DisplayMode? = null)

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

Link copied to clipboard
@Serializable
object ChangeAppUserSettingsResponse

A dummy response object for the PWADomain.changeAppUserSettings command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
enum DisplayMode : Enum<DisplayMode>

If user prefers opening the app in browser or an app window.

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
@Serializable
data class InstallRequest(val manifestId: String, val installUrlOrBundleUrl: String? = null)

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

Link copied to clipboard
@Serializable
object InstallResponse

A dummy response object for the PWADomain.install command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class LaunchFilesInAppRequest(val manifestId: String, val files: List<String>)

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

Link copied to clipboard
@Serializable
data class LaunchFilesInAppResponse(val targetIds: List<TargetID>)

Response type for the PWADomain.launchFilesInApp command.

Link copied to clipboard
@Serializable
data class LaunchRequest(val manifestId: String, val url: String? = null)

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

Link copied to clipboard
@Serializable
data class LaunchResponse(val targetId: TargetID)

Response type for the PWADomain.launch command.

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

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

Link copied to clipboard
@Serializable
object OpenCurrentPageInAppResponse

A dummy response object for the PWADomain.openCurrentPageInApp command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
class PWADomain

This domain allows interacting with the browser to control PWAs.

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

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

Link copied to clipboard
@Serializable
object UninstallResponse

A dummy response object for the PWADomain.uninstall command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.