[android-components](../../index.md) / [mozilla.components.browser.menu2.view](../index.md) / [MenuButton2](index.md) / [setEffect](./set-effect.md)

# setEffect

`fun setEffect(effect: `[`MenuEffect`](../../mozilla.components.concept.menu.candidate/-menu-effect.md)`?): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/menu2/src/main/java/mozilla/components/browser/menu2/view/MenuButton2.kt#L95)

Overrides [MenuButton.setEffect](../../mozilla.components.concept.menu/-menu-button/set-effect.md)

Show the indicator for a browser menu effect.

