# ActionMenuView.OnMenuItemClickListener

Artifact: [androidx.appcompat:appcompat](https://developer.android.com/jetpack/androidx/releases/appcompat) [View Source](https://cs.android.com/search?q=file:androidx/appcompat/widget/ActionMenuView.java+class:androidx.appcompat.widget.ActionMenuView.OnMenuItemClickListener) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

*** ** * ** ***


```
interface ActionMenuView.OnMenuItemClickListener
```

<br />

*** ** * ** ***

Interface responsible for receiving menu item click events if the items themselves do not have individual item click listeners.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/appcompat/widget/ActionMenuView.OnMenuItemClickListener#onMenuItemClick(android.view.MenuItem)(item: https://developer.android.com/reference/android/view/MenuItem.html!)` This method will be invoked when a menu item is clicked if the item itself did not already handle the event. |

## Public functions

### onMenuItemClick

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appcompat#1.1.0)

```
fun onMenuItemClick(item: MenuItem!): Boolean
```

This method will be invoked when a menu item is clicked if the item itself did not already handle the event.

| Parameters |
|---|---|
| `item: https://developer.android.com/reference/android/view/MenuItem.html!` | `https://developer.android.com/reference/android/view/MenuItem.html` that was clicked |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if the event was handled, `false` otherwise. |