[android-components](../../index.md) / [mozilla.components.browser.menu.item](../index.md) / [BrowserMenuDivider](index.md) / [asCandidate](./as-candidate.md)

# asCandidate

`fun asCandidate(context: <ERROR CLASS>): `[`DividerMenuCandidate`](../../mozilla.components.browser.menu2.candidate/-divider-menu-candidate/index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/menu/src/main/java/mozilla/components/browser/menu/item/BrowserMenuDivider.kt#L27)

Overrides [BrowserMenuItem.asCandidate](../../mozilla.components.browser.menu/-browser-menu-item/as-candidate.md)

Converts the menu item into a menu candidate.

