[android-components](../../index.md) / [mozilla.components.browser.menu2.view](../index.md) / [MenuView](index.md) / [onDismiss](./on-dismiss.md)

# onDismiss

`var onDismiss: () -> `[`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/MenuView.kt#L47)

Called when the menu is clicked and should be dismissed.

