PWADomain

class PWADomain

This domain allows interacting with the browser to control PWAs.

Official doc

Functions

Link copied to clipboard
suspend fun getOsAppState(manifestId: String): GetOsAppStateResponse

Returns the following OS state for the given manifest id.

Link copied to clipboard
inline suspend fun install(manifestId: String, optionalArgs: InstallRequest.Builder.() -> Unit = {}): InstallResponse

Installs the given manifest identity, optionally using the given install_url or IWA bundle location.

Link copied to clipboard
suspend fun launch(input: LaunchRequest): LaunchResponse
inline suspend fun launch(manifestId: String, optionalArgs: LaunchRequest.Builder.() -> Unit = {}): LaunchResponse

Launches the installed web app, or an url in the same web app instead of the default start url if it is provided. Returns a tab / web contents based Target.TargetID which can be used to attach to via Target.attachToTarget or similar APIs.

Link copied to clipboard
suspend fun uninstall(manifestId: String): UninstallResponse

Uninstals the given manifest_id and closes any opened app windows.