createRootWindowInsetsWrapper

fun View.createRootWindowInsetsWrapper(window: Window? = null): <Error class: unknown class>

Create a WindowInsetsWrapper from View.getRootWindowInsets.

Please see WindowInsetsWrapper.from that why you may need the window parameter.

You can use View.handleOnWindowInsetsChanged to handle the insets change.

Receiver

View

Return

WindowInsetsWrapper

Parameters

window

the current window, default is null.

See also

handleOnWindowInsetsChanged