Display.GetRectSize(Rect) Method

Definition

Gets the size of the display as a rectangle, in pixels.

[Android.Runtime.Register("getRectSize", "(Landroid/graphics/Rect;)V", "GetGetRectSize_Landroid_graphics_Rect_Handler")]
public virtual void GetRectSize (Android.Graphics.Rect? outSize);
[<Android.Runtime.Register("getRectSize", "(Landroid/graphics/Rect;)V", "GetGetRectSize_Landroid_graphics_Rect_Handler")>]
abstract member GetRectSize : Android.Graphics.Rect -> unit
override this.GetRectSize : Android.Graphics.Rect -> unit

Parameters

outSize
Rect

A Rect object to receive the size information.

Attributes

Remarks

Gets the size of the display as a rectangle, in pixels.

This member is deprecated. Use WindowMetrics#getBounds() to get the dimensions of the application window.

Java documentation for android.view.Display.getRectSize(android.graphics.Rect).

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

See also