library / dev.chrisbanes.insetter / Insetter / Builder

Builder

class Builder

A builder class for creating instances of Insetter.

Functions

applySystemGestureInsetsToMargin

fun applySystemGestureInsetsToMargin(flags: Int): Insetter.Builder

applySystemGestureInsetsToPadding

fun applySystemGestureInsetsToPadding(flags: Int): Insetter.Builder

applySystemWindowInsetsToMargin

fun applySystemWindowInsetsToMargin(flags: Int): Insetter.Builder

applySystemWindowInsetsToPadding

fun applySystemWindowInsetsToPadding(flags: Int): Insetter.Builder

applyToView

fun applyToView(view: View): Insetter

Builds the Insetter instance and sets it as a OnApplyWindowInsetsListener on the provided View.

build

fun build(): Insetter

Builds the Insetter instance.

consumeSystemWindowInsets

fun consumeSystemWindowInsets(consumeSystemWindowInsets: Boolean): Insetter.Builder

setOnApplyInsetsListener

fun setOnApplyInsetsListener(onApplyInsetsListener: OnApplyInsetsListener?): Insetter.Builder