Share via


SearchView.SetOnSuggestionListener(SearchView+IOnSuggestionListener) Method

Definition

Sets a listener to inform when a suggestion is focused or clicked.

[Android.Runtime.Register("setOnSuggestionListener", "(Landroid/widget/SearchView$OnSuggestionListener;)V", "GetSetOnSuggestionListener_Landroid_widget_SearchView_OnSuggestionListener_Handler")]
public virtual void SetOnSuggestionListener (Android.Widget.SearchView.IOnSuggestionListener? listener);
[<Android.Runtime.Register("setOnSuggestionListener", "(Landroid/widget/SearchView$OnSuggestionListener;)V", "GetSetOnSuggestionListener_Landroid_widget_SearchView_OnSuggestionListener_Handler")>]
abstract member SetOnSuggestionListener : Android.Widget.SearchView.IOnSuggestionListener -> unit
override this.SetOnSuggestionListener : Android.Widget.SearchView.IOnSuggestionListener -> unit

Parameters

listener
SearchView.IOnSuggestionListener

the listener to inform of suggestion selection events.

Attributes

Remarks

Java documentation for android.widget.SearchView.setOnSuggestionListener(android.widget.OnSuggestionListener).

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