[android-components](../../index.md) / [mozilla.components.browser.menu](../index.md) / [BrowserMenuHighlight](index.md) / [asEffect](./as-effect.md)

# asEffect

`abstract fun asEffect(context: <ERROR CLASS>): `[`MenuEffect`](../../mozilla.components.concept.menu.candidate/-menu-effect.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/menu/src/main/java/mozilla/components/browser/menu/BrowserMenuHighlight.kt#L28)

Converts the highlight into a corresponding [MenuEffect](../../mozilla.components.concept.menu.candidate/-menu-effect.md) from concept-menu.

