library / dev.chrisbanes.insetter / OnApplyInsetsListener / onApplyInsets

onApplyInsets

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

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

Parameters

view - View: The view applying window insets

insets - WindowInsetsCompat: The insets to apply

initialState - ViewState: A snapshot of the view's padding/margin state when this listener was set.