[android-components](../../../index.md) / [mozilla.components.browser.state.action](../../index.md) / [WebExtensionAction](../index.md) / [InstallWebExtension](index.md) / [&lt;init&gt;](./-init-.md)

# &lt;init&gt;

`InstallWebExtension(extension: `[`WebExtensionState`](../../../mozilla.components.browser.state.state/-web-extension-state/index.md)`)`

Installs the given [extension](extension.md) and adds it to the [BrowserState.extensions](../../../mozilla.components.browser.state.state/-browser-state/extensions.md).

