Android.Content.Context.CreateDisplayContext Method
Return a new Context object for the current Context but whose resources are adjusted to match the metrics of the given Display.

Syntax

[Android.Runtime.Register("createDisplayContext", "(Landroid/view/Display;)Landroid/content/Context;", "GetCreateDisplayContext_Landroid_view_Display_Handler")]
public abstract Context CreateDisplayContext (Android.Views.Display display)

Parameters

display
A Android.Views.Display object specifying the display for whose metrics the Context's resources should be tailored and upon which new windows should be shown.

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 metrics of the given Display. 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. The returned display Context provides a Android.Views.IWindowManager (see Context.GetSystemService(string)) that is configured to show windows on the given display. The WindowManager's Android.Views.IWindowManager.DefaultDisplay method can be used to retrieve the Display from the returned Context.

[Android Documentation]

Requirements

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