Język

MockContext.MoveDatabaseFrom(Context, String) Method

Definition

Throws UnsupportedOperationException. Override this method to move a database from another context in a test.

[Android.Runtime.Register("moveDatabaseFrom", "(Landroid/content/Context;Ljava/lang/String;)Z", "GetMoveDatabaseFrom_Landroid_content_Context_Ljava_lang_String_Handler", ApiSince=24)]
public override bool MoveDatabaseFrom(Android.Content.Context? sourceContext, string? name);
[<Android.Runtime.Register("moveDatabaseFrom", "(Landroid/content/Context;Ljava/lang/String;)Z", "GetMoveDatabaseFrom_Landroid_content_Context_Ljava_lang_String_Handler", ApiSince=24)>]
override this.MoveDatabaseFrom : Android.Content.Context * string -> bool

Parameters

sourceContext
Context

The context that owns the source data. Available to a test override; the default mock implementation does not use this argument.

name
String

The database name. Available to a test override; the default mock implementation does not use this argument.

Returns

No value is returned. The default mock implementation throws UnsupportedOperationException; override this method to supply a test result.

Attributes

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