Function

UiMode

A DeviceConfigurationOverride that overrides the current ui mode type.

UiMode

Source set: Android
public 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.

Return

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

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: