Android.Provider.SearchRecentSuggestions Class
This is a utility class providing access to Android.Content.SearchRecentSuggestionsProvider.

See Also: SearchRecentSuggestions Members

Syntax

[Android.Runtime.Register("android/provider/SearchRecentSuggestions", DoNotGenerateAcw=true)]
public class SearchRecentSuggestions : Java.Lang.Object

Remarks

This is a utility class providing access to Android.Content.SearchRecentSuggestionsProvider.

Unlike some utility classes, this one must be instantiated and properly initialized, so that it can be configured to operate with the search suggestions provider that you have created.

Typically, you will do this in your searchable activity, each time you receive an incoming Android.Content.Intent.ActionSearch Intent. The code to record each incoming query is as follows:

java Example

      SearchSuggestions suggestions = new SearchSuggestions(this,
              MySuggestionsProvider.AUTHORITY, MySuggestionsProvider.MODE);
      suggestions.saveRecentQuery(queryString, null);
 

For a working example, see SearchSuggestionSampleProvider and SearchQueryResults in samples/ApiDemos/app.

Developer Guides

For information about using search suggestions in your application, read the Adding Recent Query Suggestions developer guide.

[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