SearchView.IOnQueryTextListener.OnQueryTextChange(String) 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.
Called when the query text is changed by the user.
[Android.Runtime.Register("onQueryTextChange", "(Ljava/lang/String;)Z", "GetOnQueryTextChange_Ljava_lang_String_Handler:Android.Widget.SearchView/IOnQueryTextListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnQueryTextChange (string? newText);
[<Android.Runtime.Register("onQueryTextChange", "(Ljava/lang/String;)Z", "GetOnQueryTextChange_Ljava_lang_String_Handler:Android.Widget.SearchView/IOnQueryTextListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnQueryTextChange : string -> bool
Parameters
- newText
- String
the new content of the query text field.
Returns
false if the SearchView should perform the default action of showing any suggestions if available, true if the action was handled by the listener.
- Attributes
Remarks
Called when the query text is changed by the user.
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.