[android-components](../../index.md) / [mozilla.components.browser.menu.view](../index.md) / [MenuButton](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/menu/src/main/java/mozilla/components/browser/menu/view/MenuButton.kt#L167)

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

Show the indicator for a browser menu effect.

