compat/src/main/java/androidx/core/view/ViewCompat.java
public static WindowInsetsCompat dispatchApplyWindowInsets(@NonNull View view,
            WindowInsetsCompat insets) {
        if (Build.VERSION.SDK_INT >= 21) {
            WindowInsets unwrapped = (WindowInsets) WindowInsetsCompat.unwrap(insets);
            WindowInsets result = view.dispatchApplyWindowInsets(unwrapped);
            if (result != unwrapped) {
                unwrapped = new WindowInsets(result);
            }
            return WindowInsetsCompat.wrap(unwrapped);
        }
        return insets;
    }
/**
     * Request to apply the given window insets to this view or another view in its subtree.
     *
     * <p>This method should be called by clients wishing to apply insets corresponding to areas
     * obscured by window decorations or overlays. This can include the status and navigation bars,
     * action bars, input methods and more. New inset categories may be added in the future.
     * The method returns the insets provided minus any that were applied by this view or its
     * children.</p>
     *
     * @param insets Insets to apply
     * @return The provided insets minus the insets that were consumed
     */
Request to apply the given window insets to this view or another view in its subtree.
This method should be called by clients wishing to apply insets corresponding to areas
obscured by window decorations or overlays. This can include the status and navigation bars,
action bars, input methods and more. New inset categories may be added in the future.
The method returns the insets provided minus any that were applied by this view or its
children.

@param insets Insets to apply
@return The provided insets minus the insets that were consumed
Request to apply the given window insets to this view or another view in its subtree . This method should be called by clients wishing to apply insets corresponding to areas obscured by window decorations or overlays . This can include the status and navigation bars action bars input methods and more . New inset categories may be added in the future . The method returns the insets provided minus any that were applied by this view or its children . @param insets Insets to apply @return The provided insets minus the insets that were consumed
public static WindowInsetsCompat dispatchApplyWindowInsets(@NonNull View view,
            WindowInsetsCompat insets) {
        if (Build.VERSION.SDK_INT >= 21) {
            WindowInsets unwrapped = (WindowInsets) WindowInsetsCompat.unwrap(insets);
            WindowInsets result = view.dispatchApplyWindowInsets(unwrapped);
            if (result != unwrapped) {
                unwrapped = new WindowInsets(result);
            }
            return WindowInsetsCompat.wrap(unwrapped);
        }
        return insets;
    }
public static WindowInsetsCompat dispatchApplyWindowInsets ( @ NonNull View view , WindowInsetsCompat insets ) { if ( Build . VERSION . SDK_INT >= 21 ) { WindowInsets unwrapped = ( WindowInsets ) WindowInsetsCompat . unwrap ( insets ) ; WindowInsets result = view . dispatchApplyWindowInsets ( unwrapped ) ; if ( result != unwrapped ) { unwrapped = new WindowInsets ( result ) ; } return WindowInsetsCompat . wrap ( unwrapped ) ; } return insets ; }
Request to apply the given window insets to this view or another view in its subtree.
Request to apply the given window insets to this view or another view in its subtree .