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

# SearchView.OnCloseListener

*** ** * ** ***

` public static interface SearchView.OnCloseListener `   
` `

|---|
| android.widget.SearchView.OnCloseListener |

<br />

*** ** * ** ***

## Summary

| ### Public methods ||
|---|---|
| ` abstract boolean` | ` https://developer.android.com/reference/android/widget/SearchView.OnCloseListener#onClose()() ` The user is attempting to close the SearchView. |

## Public methods

### onClose

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

```
public abstract boolean onClose ()
```

The user is attempting to close the SearchView.

<br />

| Returns ||
|---|---|
| `boolean` | true if the listener wants to override the default behavior of clearing the text field and dismissing it, false otherwise. <br /> |