Display.GetMetrics(DisplayMetrics) Display.GetMetrics(DisplayMetrics) Method

Definition

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

[Android.Runtime.Register("getMetrics", "(Landroid/util/DisplayMetrics;)V", "GetGetMetrics_Landroid_util_DisplayMetrics_Handler")]
public virtual void GetMetrics (Android.Util.DisplayMetrics outMetrics);
abstract member GetMetrics : Android.Util.DisplayMetrics -> unit
override this.GetMetrics : Android.Util.DisplayMetrics -> unit

Parameters

outMetrics
DisplayMetrics DisplayMetrics

A DisplayMetrics object to receive the metrics.

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