SearchView.IOnSuggestionListener.OnSuggestionClick(Int32) Method

Definition

Called when a suggestion was clicked.

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

Parameters

position
Int32

the absolute position of the clicked item in the list of suggestions.

Returns

true if the listener handles the event and wants to override the default behavior of launching any intent or submitting a search query specified on that item. Return false otherwise.

Attributes

Remarks

Called when a suggestion was clicked.

Java documentation for android.widget.SearchView.OnSuggestionListener.onSuggestionClick(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