SearchView.SetOnQueryTextListener(SearchView+IOnQueryTextListener) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets a listener for user actions within the SearchView.
[Android.Runtime.Register("setOnQueryTextListener", "(Landroid/widget/SearchView$OnQueryTextListener;)V", "GetSetOnQueryTextListener_Landroid_widget_SearchView_OnQueryTextListener_Handler")]
public virtual void SetOnQueryTextListener (Android.Widget.SearchView.IOnQueryTextListener? listener);
[<Android.Runtime.Register("setOnQueryTextListener", "(Landroid/widget/SearchView$OnQueryTextListener;)V", "GetSetOnQueryTextListener_Landroid_widget_SearchView_OnQueryTextListener_Handler")>]
abstract member SetOnQueryTextListener : Android.Widget.SearchView.IOnQueryTextListener -> unit
override this.SetOnQueryTextListener : Android.Widget.SearchView.IOnQueryTextListener -> unit
Parameters
- listener
- SearchView.IOnQueryTextListener
the listener object that receives callbacks when the user performs actions in the SearchView such as clicking on buttons or typing a query.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.