start

fun start(consumeWindowInsets: Boolean = true, windowInsetsAnimationsEnabled: Boolean = true): WindowInsets

Start observing window insets from view. Make sure to call stop if required.

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.