ProvideWindowInsets

@Composable()
fun ProvideWindowInsets(consumeWindowInsets: Boolean = true, content: @Composable() () -> Unit)

Applies any WindowInsetsCompat values to LocalWindowInsets, which are then available within content.

If you're using this in fragments, you may wish to take a look at ViewWindowInsetObserver for a more optimal solution.

Parameters

consumeWindowInsets

Whether to consume any WindowInsetsCompats which are dispatched to the host view. Defaults to true.

@Composable()
fun ProvideWindowInsets(windowInsetsAnimationsEnabled: Boolean, consumeWindowInsets: Boolean = true, content: @Composable() () -> Unit)

Applies any WindowInsetsCompat values to LocalWindowInsets, which are then available within content.

If you're using this in fragments, you may wish to take a look at ViewWindowInsetObserver for a more optimal solution.

Parameters

windowInsetsAnimationsEnabled

Whether to listen for WindowInsetsAnimations, such as IME animations.

consumeWindowInsets

Whether to consume any WindowInsetsCompats which are dispatched to the host view. Defaults to true.