hideSystemBars

fun Activity.hideSystemBars(systemBarsBehavior: Int = WindowInsetsControllerCompat.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE)

Hides system bars for this Activity.

This wraps the AndroidX window insets controller setup required before calling hide(systemBars()).