Suppresses the system status bar for full-screen or overlay components.
StatusBarSuppressionSample
@Sampled
@Composable
fun StatusBarSuppressionSample() {
// Suppress the status bar to avoid overlapping with the full-screen circular progress
// indicator.
StatusBarSuppression()
Box(
modifier =
Modifier.background(MaterialTheme.colorScheme.background)
.padding(CircularProgressIndicatorDefaults.FullScreenPadding)
.fillMaxSize()
) {
CircularProgressIndicator(progress = { 0.75f }, startAngle = 120f, endAngle = 60f)
}
}