Język

MockContext.CreateContextForSplit(String) Method

Definition

Throws UnsupportedOperationException. Override this method to create a context for an application split in a test.

[Android.Runtime.Register("createContextForSplit", "(Ljava/lang/String;)Landroid/content/Context;", "GetCreateContextForSplit_Ljava_lang_String_Handler", ApiSince=26)]
public override Android.Content.Context? CreateContextForSplit(string? splitName);
[<Android.Runtime.Register("createContextForSplit", "(Ljava/lang/String;)Landroid/content/Context;", "GetCreateContextForSplit_Ljava_lang_String_Handler", ApiSince=26)>]
override this.CreateContextForSplit : string -> Android.Content.Context

Parameters

splitName
String

The name of the application split. 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

Java documentation for android.test.mock.MockContext.createContextForSplit(java.lang.String).

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