getBoundingRects
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.
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, 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.
When running on devices with API Level 35 and before, the returned bounding rects are an approximation based on the information available from current insets.
Return
the bounding rectangles
Parameters
the insets type for which to obtain the bounding rectangles