Udostępnij za pośrednictwem


DisplayManager.GetDisplay(Int32) Method

Definition

Gets information about a logical display.

[Android.Runtime.Register("getDisplay", "(I)Landroid/view/Display;", "")]
public Android.Views.Display? GetDisplay (int displayId);
[<Android.Runtime.Register("getDisplay", "(I)Landroid/view/Display;", "")>]
member this.GetDisplay : int -> Android.Views.Display

Parameters

displayId
Int32

The logical display id.

Returns

The display object, or null if there is no valid display with the given id.

Attributes

Remarks

Gets information about a logical display.

The display metrics may be adjusted to provide compatibility for legacy applications.

Java documentation for android.hardware.display.DisplayManager.getDisplay(int).

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