# PopupMenu.OnDismissListener

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

*** ** * ** ***


```
interface PopupMenu.OnDismissListener
```

<br />

*** ** * ** ***

Callback interface used to notify the application that the menu has closed.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/appcompat/widget/PopupMenu.OnDismissListener#onDismiss(androidx.appcompat.widget.PopupMenu)(menu: https://developer.android.com/reference/kotlin/androidx/appcompat/widget/PopupMenu!)` Called when the associated menu has been dismissed. |

## Public functions

### onDismiss

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

```
fun onDismiss(menu: PopupMenu!): Unit
```

Called when the associated menu has been dismissed.

| Parameters |
|---|---|
| `menu: https://developer.android.com/reference/kotlin/androidx/appcompat/widget/PopupMenu!` | the popup menu that was dismissed |