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

# &lt;init&gt;

`ToggleAction(tabId: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, enabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)`

Updates the [TrackingProtectionState.enabled](../../../mozilla.components.browser.state.state/-tracking-protection-state/enabled.md) flag.

