Context.CreateDisplayContext(Display) Context.CreateDisplayContext(Display) Method

Definition

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

[Android.Runtime.Register("createDisplayContext", "(Landroid/view/Display;)Landroid/content/Context;", "GetCreateDisplayContext_Landroid_view_Display_Handler", ApiSince=17)]
public abstract Android.Content.Context CreateDisplayContext (Android.Views.Display display);
abstract member CreateDisplayContext : Android.Views.Display -> Android.Content.Context

Parameters

display
Display Display

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

Returns

Remarks

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