次の方法で共有


Context.Display Property

Definition

Get the display this context is associated with.

public virtual Android.Views.Display? Display { [Android.Runtime.Register("getDisplay", "()Landroid/view/Display;", "GetGetDisplayHandler", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getDisplay", "()Landroid/view/Display;", "GetGetDisplayHandler", ApiSince=30)>]
member this.Display : Android.Views.Display

Property Value

Returns the Display object this context is associated with.

Attributes

Remarks

Get the display this context is associated with. Applications should use this method with android.app.Activity or a context associated with a Display via #createDisplayContext(Display) to get a display object associated with a Context, or android.hardware.display.DisplayManager#getDisplay to get a display object by id.

Java documentation for android.content.Context.getDisplay().

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