Context.CreateContext(ContextParams) 方法

定义

创建具有特定属性和行为的上下文。

[Android.Runtime.Register("createContext", "(Landroid/content/ContextParams;)Landroid/content/Context;", "GetCreateContext_Landroid_content_ContextParams_Handler", ApiSince=31)]
public virtual Android.Content.Context CreateContext (Android.Content.ContextParams contextParams);
[<Android.Runtime.Register("createContext", "(Landroid/content/ContextParams;)Landroid/content/Context;", "GetCreateContext_Landroid_content_ContextParams_Handler", ApiSince=31)>]
abstract member CreateContext : Android.Content.ContextParams -> Android.Content.Context
override this.CreateContext : Android.Content.ContextParams -> Android.Content.Context

参数

contextParams
ContextParams

新上下文的行为方式的参数。

返回

具有指定行为的上下文。

属性

注解

创建具有特定属性和行为的上下文。

android.content.Context.createContext(android.content.ContextParams)Java 文档。

此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。

适用于