Sdílet prostřednictvím


WindowInsets.GetBoundingRectsIgnoringVisibility(Int32) Method

Definition

Returns a list of Rects, each of which is the bounding rectangle for an area that can be partially or fully obscured inside the window, regardless of whether that type is currently visible or not.

[Android.Runtime.Register("getBoundingRectsIgnoringVisibility", "(I)Ljava/util/List;", "", ApiSince=35)]
public System.Collections.Generic.IList<Android.Graphics.Rect> GetBoundingRectsIgnoringVisibility (int typeMask);
[<Android.Runtime.Register("getBoundingRectsIgnoringVisibility", "(I)Ljava/util/List;", "", ApiSince=35)>]
member this.GetBoundingRectsIgnoringVisibility : 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 can be partially or fully obscured inside the window, regardless of whether that type is currently visible or not.

The bounding rects represent areas of a window that <b>may</b> be partially or fully obscured by the type. This value does not change based on the visibility state of those elements. For example, if the status bar is normally shown, but temporarily hidden, the bounding rects returned here will provide the rects associated with the status bar being shown.

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 #getInsetsIgnoringVisibility(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.

Java documentation for android.view.WindowInsets.getBoundingRectsIgnoringVisibility(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