Megosztás a következőn keresztül:


Context.CreateContext(ContextParams) Method

Definition

Creates a context with specific properties and behaviors.

[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

Parameters

contextParams
ContextParams

Parameters for how the new context should behave.

Returns

A context with the specified behaviors.

Attributes

Remarks

Creates a context with specific properties and behaviors.

Java documentation for android.content.Context.createContext(android.content.ContextParams).

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