07-20-2023, 03:53 PM
If you are using **Jetpack Compose**, use this method in `setContent`:
```kt
@Composable
fun HideSystemUi()
{
val systemUiController = rememberSystemUiController()
SideEffect {
systemUiController.isSystemBarsVisible = false
}
}
```
Do not forget to add this to your app's `build.gradle` file (adjust the version if necessary):
```gradle
implementation "com.google.accompanist:accompanist-systemuicontroller:0.17.0"
```
The documentation can be found [here][2], although you might want to have a look at the [sources][1].
[1]:
```kt
@Composable
fun HideSystemUi()
{
val systemUiController = rememberSystemUiController()
SideEffect {
systemUiController.isSystemBarsVisible = false
}
}
```
Do not forget to add this to your app's `build.gradle` file (adjust the version if necessary):
```gradle
implementation "com.google.accompanist:accompanist-systemuicontroller:0.17.0"
```
The documentation can be found [here][2], although you might want to have a look at the [sources][1].
[1]:
[To see links please register here]
[2]:[To see links please register here]