Android.Provider.SearchRecentSuggestions.SaveRecentQuery Method
Add a query to the recent queries list.

Syntax

[Android.Runtime.Register("saveRecentQuery", "(Ljava/lang/String;Ljava/lang/String;)V", "GetSaveRecentQuery_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual void SaveRecentQuery (string queryString, string line2)

Parameters

queryString
The string as typed by the user. This string will be displayed as the suggestion, and if the user clicks on the suggestion, this string will be sent to your searchable activity (as a new search query).
line2
If you have configured your recent suggestions provider with Android.Content.SearchRecentSuggestionsProvider.DATABASE_MODE_2LINES, you can pass a second line of text here. It will be shown in a smaller font, below the primary suggestion. When typing, matches in either line of text will be displayed in the list. If you did not configure two-line mode, or if a given suggestion does not have any additional text to display, you can pass null here.

Remarks

Add a query to the recent queries list. Returns immediately, performing the save in the background.

[Android Documentation]

Requirements

Namespace: Android.Provider
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1