pub struct InstallParams<'a> { /* private fields */ }Expand description
Installs the given manifest identity, optionally using the given installUrlOrBundleUrl
IWA-specific install description: manifestId corresponds to isolated-app:// + web_package::SignedWebBundleId
File installation mode: The installUrlOrBundleUrl can be either file:// or http(s):// pointing to a signed web bundle (.swbn). In this case SignedWebBundleId must correspond to The .swbn file’s signing key.
Dev proxy installation mode: installUrlOrBundleUrl must be http(s):// that serves dev mode IWA. web_package::SignedWebBundleId must be of type dev proxy.
The advantage of dev proxy mode is that all changes to IWA automatically will be reflected in the running app without reinstallation.
To generate bundle id for proxy mode:
- Generate 32 random bytes.
- Add a specific suffix at the end following the documentation https://github.com/WICG/isolated-web-apps/blob/main/Scheme.md#suffix
- Encode the entire sequence using Base32 without padding.
If Chrome is not in IWA dev mode, the installation will fail, regardless of the state of the allowlist.
Implementations§
Source§impl<'a> InstallParams<'a>
impl<'a> InstallParams<'a>
Sourcepub fn builder(manifest_id: impl Into<Cow<'a, str>>) -> InstallParamsBuilder<'a>
pub fn builder(manifest_id: impl Into<Cow<'a, str>>) -> InstallParamsBuilder<'a>
Creates a builder for this type with the required parameters:
manifest_id:
pub fn manifest_id(&self) -> &str
Sourcepub fn install_url_or_bundle_url(&self) -> Option<&str>
pub fn install_url_or_bundle_url(&self) -> Option<&str>
The location of the app or bundle overriding the one derived from the manifestId.
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for InstallParams<'a>
impl<'a> CdpCommand<'a> for InstallParams<'a>
Source§impl<'a> Clone for InstallParams<'a>
impl<'a> Clone for InstallParams<'a>
Source§fn clone(&self) -> InstallParams<'a>
fn clone(&self) -> InstallParams<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more