Android.Views.View.GetWindowVisibleDisplayFrame Method
Retrieve the overall visible display size in which the window this view is attached to has been positioned in.

Syntax

[Android.Runtime.Register("getWindowVisibleDisplayFrame", "(Landroid/graphics/Rect;)V", "GetGetWindowVisibleDisplayFrame_Landroid_graphics_Rect_Handler")]
public virtual void GetWindowVisibleDisplayFrame (Android.Graphics.Rect outRect)

Parameters

outRect
Filled in with the visible display frame. If the view is not attached to a window, this is simply the raw display size.

Remarks

Retrieve the overall visible display size in which the window this view is attached to has been positioned in. This takes into account screen decorations above the window, for both cases where the window itself is being position inside of them or the window is being placed under then and covered insets are used for the window to position its content inside. In effect, this tells you the available area where content can be placed and remain visible to users.

This function requires an IPC back to the window manager to retrieve the requested information, so should not be used in performance critical code like drawing.

[Android Documentation]

Requirements

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