[android-components](../../index.md) / [mozilla.components.browser.menu.item](../index.md) / [BrowserMenuHighlightableSwitch](index.md) / [invalidate](./invalidate.md)

# invalidate

`fun invalidate(view: <ERROR CLASS>): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/menu/src/main/java/mozilla/components/browser/menu/item/BrowserMenuHighlightableSwitch.kt#L56)

Overrides [BrowserMenuItem.invalidate](../../mozilla.components.browser.menu/-browser-menu-item/invalidate.md)

Called by the browser menu to update the displayed data of this item using the passed view.

