Package-level declarations
Functions
Link copied to clipboard
Create a WindowInsetsWrapper from View.getRootWindowInsets.
Link copied to clipboard
Create a WindowInsetsWrapper from WindowInsetsCompat.
Link copied to clipboard
fun <V : View> V.handleOnWindowInsetsChanged(consumed: Boolean = false, animated: Boolean = false, animationDispatchMode: Int = DISPATCH_MODE_CONTINUE_ON_SUBTREE, requestApplyOnLayout: Boolean = false, onChange: (V, insetsWrapper: WindowInsetsWrapper) -> Unit)
Handle the window insets change for this view.
Link copied to clipboard
Remove the window insets listener for this view.
Link copied to clipboard
fun View.setInsetsPadding(insets: InsetsWrapper, horizontal: Boolean = true, vertical: Boolean = true)
fun View.setInsetsPadding(insets: Insets, left: Boolean = true, top: Boolean = true, right: Boolean = true, bottom: Boolean = true)
fun View.setInsetsPadding(insets: InsetsWrapper, left: Boolean = true, top: Boolean = true, right: Boolean = true, bottom: Boolean = true)
Set this view's padding with insets.
Link copied to clipboard
fun View.syncInsetsPadding(left: Boolean = true, top: Boolean = true, right: Boolean = true, bottom: Boolean = true)
Synchronize the current padding back to the original insets padding baseline.
Link copied to clipboard
Convert Insets to AbsolutePadding.
Convert InsetsWrapper to AbsolutePadding.
Link copied to clipboard
Convert Insets to InsetsWrapper.
Link copied to clipboard
fun View.updateInsetsPadding(insets: Insets, horizontal: Boolean = false, vertical: Boolean = false)
fun View.updateInsetsPadding(insets: InsetsWrapper, horizontal: Boolean = false, vertical: Boolean = false)
fun View.updateInsetsPadding(insets: Insets, left: Boolean = false, top: Boolean = false, right: Boolean = false, bottom: Boolean = false)
fun View.updateInsetsPadding(insets: InsetsWrapper, left: Boolean = false, top: Boolean = false, right: Boolean = false, bottom: Boolean = false)
Update this view's padding with insets.