[android-components](../../index.md) / [mozilla.components.browser.toolbar.display](../index.md) / [DisplayToolbar](index.md) / [menuController](./menu-controller.md)

# menuController

`var menuController: `[`MenuController`](../../mozilla.components.concept.menu/-menu-controller/index.md)`?` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/toolbar/src/main/java/mozilla/components/browser/toolbar/display/DisplayToolbar.kt#L391)

Sets a [MenuController](../../mozilla.components.concept.menu/-menu-controller/index.md) that will be used to create a menu when the menu button is clicked.
The menu button will only be visible if a builder or controller has been set.
If both a [menuBuilder](menu-builder.md) and controller are present, only the controller will be used.

