Android.Views.Display.GetMetrics Method
Gets display metrics that describe the size and density of this display.

Syntax

[Android.Runtime.Register("getMetrics", "(Landroid/util/DisplayMetrics;)V", "GetGetMetrics_Landroid_util_DisplayMetrics_Handler")]
public virtual void GetMetrics (Android.Util.DisplayMetrics outMetrics)

Parameters

outMetrics
A Android.Util.DisplayMetrics object to receive the metrics.

Remarks

Gets display metrics that describe the size and density of this display.

The size is adjusted based on the current rotation of the display.

The size returned by this method does not necessarily represent the actual raw size (native resolution) of the display. The returned size may be adjusted to exclude certain system decor elements that are always visible. It may also be scaled to provide compatibility with older applications that were originally designed for smaller displays.

[Android Documentation]

Requirements

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