Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

OnCloseListener

interface OnCloseListener
androidx.appcompat.widget.SearchView.OnCloseListener

Summary

Public methods
abstract Boolean

The user is attempting to close the SearchView.

Public methods

onClose

abstract fun onClose(): Boolean

The user is attempting to close the SearchView.

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