Function

UiMode

A [DeviceConfigurationOverride] that overrides the current ui mode type.

UiMode

Android
fun DeviceConfigurationOverride.Companion.UiMode(
    @UiModeType uiModeType: Int
): DeviceConfigurationOverride

A DeviceConfigurationOverride that overrides the current ui mode type.

Parameters

uiModeType the uiMode type to render the content under test in. This should be one of the Configuration.UI_MODE_TYPE_* values.

Returns

a DeviceConfigurationOverride that specifies the uiMode type for the content under test.