Android.Test.Mock.MockContext.CreateConfigurationContext Method
Return a new Context object for the current Context but whose resources are adjusted to match the given Configuration.

Syntax

[Android.Runtime.Register("createConfigurationContext", "(Landroid/content/res/Configuration;)Landroid/content/Context;", "GetCreateConfigurationContext_Landroid_content_res_Configuration_Handler")]
public override Android.Content.Context CreateConfigurationContext (Android.Content.Res.Configuration overrideConfiguration)

Parameters

overrideConfiguration
A Android.Content.Res.Configuration specifying what values to modify in the base Configuration of the original Context's resources. If the base configuration changes (such as due to an orientation change), the resources of this context will also change except for those that have been explicitly overridden with a value here.

Returns

Documentation for this section has not yet been entered.

Remarks

Return a new Context object for the current Context but whose resources are adjusted to match the given Configuration. Each call to this method returns a new instance of a Context object; Context objects are not shared, however common state (ClassLoader, other Resources for the same configuration) may be so the Context itself can be fairly lightweight.

[Android Documentation]

Requirements

Namespace: Android.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 17