added in version 25.1.0
belongs to Maven artifact com.android.support:appcompat-v7:28.0.0-alpha1

SearchView.OnCloseListener

public static interface SearchView.OnCloseListener

android.support.v7.widget.SearchView.OnCloseListener


Summary

Public methods

abstract boolean onClose()

The user is attempting to close the SearchView.

Public methods

onClose

added in version 25.1.0
boolean onClose ()

The user is attempting to close the SearchView.

Returns
boolean true if the listener wants to override the default behavior of clearing the text field and dismissing it, false otherwise.