SearchRecentSuggestions Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|
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
- 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
.
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
- SearchRecentSuggestionsProvider
- <xref:Android.Content.SearchRecentSuggestionsProvider.SetupSuggestions(System.String%2c+Android.Content.DatabaseMode)>