start
Start observing window insets from view. Make sure to call stop if required.
Parameters
consumeWindowInsets
Whether to consume any WindowInsetsCompats which are dispatched to the host view. Defaults to true.
fun start(windowInsetsAnimationsEnabled: Boolean, consumeWindowInsets: Boolean = true): WindowInsets
Content copied to clipboard
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.