SearchRecentSuggestionsProvider.SetupSuggestions(String, DatabaseMode) Method

Definition

In order to use this class, you must extend it, and call this setup function from your constructor.

[Android.Runtime.Register("setupSuggestions", "(Ljava/lang/String;I)V", "GetSetupSuggestions_Ljava_lang_String_IHandler")]
protected virtual void SetupSuggestions (string? authority, Android.Content.DatabaseMode mode);
[<Android.Runtime.Register("setupSuggestions", "(Ljava/lang/String;I)V", "GetSetupSuggestions_Ljava_lang_String_IHandler")>]
abstract member SetupSuggestions : string * Android.Content.DatabaseMode -> unit
override this.SetupSuggestions : string * Android.Content.DatabaseMode -> unit

Parameters

authority
String

This must match the authority that you've declared in your manifest.

mode
DatabaseMode

You can use mode flags here to determine certain functional aspects of your database. Note, this value should not change from run to run, because when it does change, your suggestions database may be wiped.

Attributes

Remarks

In order to use this class, you must extend it, and call this setup function from your constructor. In your application or activities, you must provide the same values when you create the android.provider.SearchRecentSuggestions helper.

Java documentation for android.content.SearchRecentSuggestionsProvider.setupSuggestions(java.lang.String, 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