Compartilhar via


SearchView.IOnQueryTextListener.OnQueryTextChange(String) Method

Definition

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.

Java documentation for android.widget.SearchView.OnQueryTextListener.onQueryTextChange(java.lang.String).

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.

Applies to