Share via


WindowInsets.Frame Property

Definition

Returns the assumed size of the window, relative to which the #getInsets and #getBoundingRects have been calculated.

public Android.Util.Size Frame { [Android.Runtime.Register("getFrame", "()Landroid/util/Size;", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getFrame", "()Landroid/util/Size;", "", ApiSince=35)>]
member this.Frame : Android.Util.Size

Property Value

the assumed size of the window during the inset calculation

Attributes

Remarks

Returns the assumed size of the window, relative to which the #getInsets and #getBoundingRects have been calculated.

May be used with #getBoundingRects to better understand their position within the window, such as the area between the edge of a bounding rect and the edge of the window.

Note: the size may not match the actual size of the window, which is determined during the layout pass - as WindowInsets are dispatched before layout.

Caution: using this value in determining the actual window size may make the result of layout passes unstable and should be avoided.

Java documentation for android.view.WindowInsets.getFrame().

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