Share via


SearchView.SuggestionsAdapter Property

Definition

Returns the adapter used for suggestions, if any. -or- You can set a custom adapter if you wish.

public virtual Android.Widget.CursorAdapter? SuggestionsAdapter { [Android.Runtime.Register("getSuggestionsAdapter", "()Landroid/widget/CursorAdapter;", "GetGetSuggestionsAdapterHandler")] get; [Android.Runtime.Register("setSuggestionsAdapter", "(Landroid/widget/CursorAdapter;)V", "GetSetSuggestionsAdapter_Landroid_widget_CursorAdapter_Handler")] set; }
[<get: Android.Runtime.Register("getSuggestionsAdapter", "()Landroid/widget/CursorAdapter;", "GetGetSuggestionsAdapterHandler")>]
[<set: Android.Runtime.Register("setSuggestionsAdapter", "(Landroid/widget/CursorAdapter;)V", "GetSetSuggestionsAdapter_Landroid_widget_CursorAdapter_Handler")>]
member this.SuggestionsAdapter : Android.Widget.CursorAdapter with get, set

Property Value

the suggestions adapter

Attributes

Remarks

Property getter documentation:

Returns the adapter used for suggestions, if any.

Java documentation for android.widget.SearchView.getSuggestionsAdapter().

Property setter documentation:

You can set a custom adapter if you wish. Otherwise the default adapter is used to display the suggestions from the suggestions provider associated with the SearchableInfo.

Java documentation for android.widget.SearchView.setSuggestionsAdapter(android.widget.CursorAdapter).

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

See also