SearchView.IOnSuggestionListener.OnSuggestionSelect(Int32) Method

Definition

Called when a suggestion was selected by navigating to it.

[Android.Runtime.Register("onSuggestionSelect", "(I)Z", "GetOnSuggestionSelect_IHandler:Android.Widget.SearchView/IOnSuggestionListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnSuggestionSelect (int position);
[<Android.Runtime.Register("onSuggestionSelect", "(I)Z", "GetOnSuggestionSelect_IHandler:Android.Widget.SearchView/IOnSuggestionListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnSuggestionSelect : int -> bool

Parameters

position
Int32

the absolute position in the list of suggestions.

Returns

true if the listener handles the event and wants to override the default behavior of possibly rewriting the query based on the selected item, false otherwise.

Attributes

Remarks

Called when a suggestion was selected by navigating to it.

Java documentation for android.widget.SearchView.OnSuggestionListener.onSuggestionSelect(int).

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