rememberSystemUiController

@Composable()
fun rememberSystemUiController(window: Window? = findWindow()): SystemUiController

Remembers a SystemUiController for the given window.

If no window is provided, an attempt to find the correct Window is made.

First, if the LocalView's parent is a DialogWindowProvider, then that dialog's Window will be used.

Second, we attempt to find Window for the Activity containing the LocalView.

If none of these are found (such as may happen in a preview), then the functionality of the returned SystemUiController will be degraded, but won't throw an exception.