Compartilhar via


WindowInsets.GetBoundingRects(Int32) Method

Definition

Returns a list of Rects, each of which is the bounding rectangle for an area that is being partially or fully obscured inside the window.

[Android.Runtime.Register("getBoundingRects", "(I)Ljava/util/List;", "", ApiSince=35)]
public System.Collections.Generic.IList<Android.Graphics.Rect> GetBoundingRects (int typeMask);
[<Android.Runtime.Register("getBoundingRects", "(I)Ljava/util/List;", "", ApiSince=35)>]
member this.GetBoundingRects : int -> System.Collections.Generic.IList<Android.Graphics.Rect>

Parameters

typeMask
Int32

the insets type for which to obtain the bounding rectangles

Returns

the bounding rectangles

Attributes

Remarks

Returns a list of Rects, each of which is the bounding rectangle for an area that is being partially or fully obscured inside the window.

May be used with or instead of Insets for finer avoidance of regions that may be partially obscuring the window but may be smaller than those provided by #getInsets(int).

The Rects returned are always cropped to the bounds of the window frame and their coordinate values are relative to the #getFrame(), regardless of the window's position on screen.

If inset by #inset(Insets), bounding rects that intersect with the provided insets will be resized to only include the intersection with the remaining frame. Bounding rects may be completely removed if they no longer intersect with the new instance.

Java documentation for android.view.WindowInsets.getBoundingRects(int).

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