MockContext.CreateConfigurationContext(Configuration) メソッド

定義

現在の Context の新しい Context オブジェクトを返しますが、そのリソースは特定の構成に合わせて調整されます。

[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);
[<Android.Runtime.Register("createConfigurationContext", "(Landroid/content/res/Configuration;)Landroid/content/Context;", "GetCreateConfigurationContext_Landroid_content_res_Configuration_Handler")>]
override this.CreateConfigurationContext : Android.Content.Res.Configuration -> Android.Content.Context

パラメーター

overrideConfiguration
Configuration

元のコンテキストのリソースの基本構成で変更する値を指定する Configuration 。 基本構成が変更された場合 (向きの変更など)、このコンテキストのリソースも、ここで値で明示的にオーバーライドされたものを除いて変更されます。

返品

属性

注釈

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象