<div class='type'>Composable Function</div>


<a id='references'></a>



<h2 id="deviceconfigurationoverride-override-content">DeviceConfigurationOverride</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@Composable
fun DeviceConfigurationOverride(
    override: DeviceConfigurationOverride,
    content: @Composable () -> Unit,
): Unit
```


Applies `DeviceConfigurationOverride` to the `content` under test to apply some configuration
override.

This can be useful to locally test behavior in isolation that depends on properties that are
normally device-wide, such as `font scale`,
`screen size` and
`layout direction`.

#### Parameters

| | |
| --- | --- |
| override | the `DeviceConfigurationOverride` to apply |
| content | the content under test to apply the override to |