SystemUiController

A class which provides easy-to-use utilities for updating the System UI bar colors within Jetpack Compose.

Samples

com.google.accompanist.sample.systemuicontroller.SystemUiControllerSample

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Property which holds the navigation bar visibility. If set to true, show the navigation bar, otherwise hide the navigation bar.

Link copied to clipboard

Property which holds the status bar visibility. If set to true, show the status bar, otherwise hide the status bar.

Link copied to clipboard

Property which holds the status & navigation bar visibility. If set to true, show both bars, otherwise hide both bars.

Link copied to clipboard
abstract var keepScreenOn: Boolean
Link copied to clipboard
abstract var screenBrightness: Float
Link copied to clipboard
abstract var systemBarsBehavior: Int

Control for the behavior of the system bars. This value should be one of the WindowInsetsControllerCompat behavior constants: WindowInsetsControllerCompat.BEHAVIOR_SHOW_BARS_BY_TOUCH (Deprecated), WindowInsetsControllerCompat.BEHAVIOR_DEFAULT and WindowInsetsControllerCompat.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE.