Megosztás a következőn keresztül:


SearchRecentSuggestions Constructors

Definition

Overloads

SearchRecentSuggestions(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SearchRecentSuggestions(Context, String, DatabaseMode)

Although provider utility classes are typically static, this one must be constructed because it needs to be initialized using the same values that you provided in your android.content.SearchRecentSuggestionsProvider.

SearchRecentSuggestions(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SearchRecentSuggestions (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Provider.SearchRecentSuggestions : nativeint * Android.Runtime.JniHandleOwnership -> Android.Provider.SearchRecentSuggestions

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

SearchRecentSuggestions(Context, String, DatabaseMode)

Although provider utility classes are typically static, this one must be constructed because it needs to be initialized using the same values that you provided in your android.content.SearchRecentSuggestionsProvider.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/String;I)V", "")]
public SearchRecentSuggestions (Android.Content.Context? context, string? authority, Android.Content.DatabaseMode mode);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/String;I)V", "")>]
new Android.Provider.SearchRecentSuggestions : Android.Content.Context * string * Android.Content.DatabaseMode -> Android.Provider.SearchRecentSuggestions

Parameters

context
Context
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

Although provider utility classes are typically static, this one must be constructed because it needs to be initialized using the same values that you provided in your android.content.SearchRecentSuggestionsProvider.

Java documentation for android.provider.SearchRecentSuggestions.SearchRecentSuggestions(android.content.Context, 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.

See also

Applies to