Function

RoundScreen

A DeviceConfigurationOverride that overrides whether the screen is round for the contained content.

DeviceConfigurationOverrideRoundScreenSample

@Sampled
@Composable
fun DeviceConfigurationOverrideRoundScreenSample() {
    DeviceConfigurationOverride(DeviceConfigurationOverride.RoundScreen(true)) {
        LocalConfiguration.current.isScreenRound // will be true
    }
}
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: