共用方式為


MockContentResolver Constructors

Definition

Overloads

MockContentResolver()

Creates a local map of providers.

MockContentResolver(Context)

Creates a local map of providers.

MockContentResolver(IntPtr, JniHandleOwnership)

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

MockContentResolver()

Creates a local map of providers.

[Android.Runtime.Register(".ctor", "()V", "")]
public MockContentResolver ();
Attributes

Remarks

Creates a local map of providers. This map is used instead of the global map when an API call tries to acquire a provider.

Java documentation for android.test.mock.MockContentResolver.MockContentResolver().

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

MockContentResolver(Context)

Creates a local map of providers.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public MockContentResolver (Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Test.Mock.MockContentResolver : Android.Content.Context -> Android.Test.Mock.MockContentResolver

Parameters

context
Context
Attributes

Remarks

Creates a local map of providers. This map is used instead of the global map when an API call tries to acquire a provider.

Java documentation for android.test.mock.MockContentResolver.MockContentResolver(android.content.Context).

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

MockContentResolver(IntPtr, JniHandleOwnership)

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

protected MockContentResolver (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Test.Mock.MockContentResolver : nativeint * Android.Runtime.JniHandleOwnership -> Android.Test.Mock.MockContentResolver

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