getBoundingRectsIgnoringVisibility
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 may 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.
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.
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 ignoring visibility.
Return
the bounding rectangles
Parameters
the insets type for which to obtain the bounding rectangles
Throws
If the caller tries to query ime. Bounding rects are not available if the IME isn't visible as the height of the IME is dynamic depending on the EditorInfo of the currently focused view, as well as the UI state of the IME.