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


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


<h2 id="darkmode-isdarkmode">DarkMode</h2>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
fun DeviceConfigurationOverride.Companion.DarkMode(
    isDarkMode: Boolean
): DeviceConfigurationOverride
```


A `DeviceConfigurationOverride` that overrides the dark mode or light mode theme for the
contained content. Inside the content under test, `isSystemInDarkTheme()` will return
`isDarkMode`.

#### Parameters

| | |
| --- | --- |
| isDarkMode | if `true`, render content under test in dark mode. |


#### Returns

| | |
| --- | --- |
|  | a `DeviceConfigurationOverride` that specifies the dark mode for the content under test. |