# SearchManager.OnDismissListener

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# SearchManager.OnDismissListener

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/app/SearchManager.OnDismissListener "View this page in Kotlin")\|Java

`
public
static


interface
SearchManager.OnDismissListener
`  
`


`

|---------------------------------------------|
| android.app.SearchManager.OnDismissListener |

<br />

*** ** * ** ***

See[SearchManager.setOnDismissListener](https://developer.android.com/reference/android/app/SearchManager#setOnDismissListener(android.app.SearchManager.OnDismissListener))for configuring your activity to monitor search UI state.

## Summary

|                                                                                         ### Public methods                                                                                         ||
|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onDismiss](https://developer.android.com/reference/android/app/SearchManager.OnDismissListener#onDismiss())`() ` This method will be called when the search UI is dismissed. |

## Public methods

### onDismiss

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract void onDismiss ()
```

This method will be called when the search UI is dismissed. To make use of it, you must implement this method in your activity, and call[SearchManager.setOnDismissListener](https://developer.android.com/reference/android/app/SearchManager#setOnDismissListener(android.app.SearchManager.OnDismissListener))to register it.

<br />