library / dev.chrisbanes.insetter / OnApplyInsetsListener

OnApplyInsetsListener

interface OnApplyInsetsListener

Listener for applying window insets on a view in a custom way.

This class is similar to to androidx.core.view.OnApplyWindowInsetsListener but contains a third parameter on #onApplyInsets(View, WindowInsetsCompat, ViewState). It is designed to be used in conjunction with .

Functions

onApplyInsets

abstract fun onApplyInsets(view: View, insets: WindowInsetsCompat, initialState: ViewState): Unit

When set on a View, this listener method will be called instead of the view's own onApplyWindowInsets method.