Skip to content

Instantly share code, notes, and snippets.

@jollygreenegiant
Last active July 1, 2025 16:39
Show Gist options
  • Save jollygreenegiant/e8a58a5d0feb2341067d71ab776cfde1 to your computer and use it in GitHub Desktop.
Save jollygreenegiant/e8a58a5d0feb2341067d71ab776cfde1 to your computer and use it in GitHub Desktop.
interface InsetsHandler {
fun handleInsets(
view: View?,
insetDirection: InsetDirection = InsetDirection.EXCLUDE_TOP,
consumeInsets: Boolean = true,
useMargin: Boolean = false,
)
fun handleInsetsWithPinnedButton(
mainContent: View?,
bottomPinnedContent: View?,
screenHasToolbar: Boolean = true,
)
fun handleInsets(
view: View?,
consumeInsets: Boolean = true,
handleInsets: (View, Insets) -> Unit,
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment