Share via


MockContentResolver.AddProvider(String, ContentProvider) Method

Definition

Adds access to a provider based on its authority

[Android.Runtime.Register("addProvider", "(Ljava/lang/String;Landroid/content/ContentProvider;)V", "GetAddProvider_Ljava_lang_String_Landroid_content_ContentProvider_Handler")]
public virtual void AddProvider (string? name, Android.Content.ContentProvider? provider);
[<Android.Runtime.Register("addProvider", "(Ljava/lang/String;Landroid/content/ContentProvider;)V", "GetAddProvider_Ljava_lang_String_Landroid_content_ContentProvider_Handler")>]
abstract member AddProvider : string * Android.Content.ContentProvider -> unit
override this.AddProvider : string * Android.Content.ContentProvider -> unit

Parameters

name
String

The authority name associated with the provider.

provider
ContentProvider

An instance of android.content.ContentProvider or one of its subclasses, or null.

Attributes

Remarks

Adds access to a provider based on its authority

Java documentation for android.test.mock.MockContentResolver.addProvider(java.lang.String, android.content.ContentProvider).

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