Function

Keyboard

A DeviceConfigurationOverride that overrides the current keyboard type.

Keyboard

Source set: Android
public fun DeviceConfigurationOverride.Companion.Keyboard(
    @KeyboardType keyboardType: Int,
    isHardKeyboardHidden: Boolean = false,
    isHidden: Boolean = false,
): DeviceConfigurationOverride

A DeviceConfigurationOverride that overrides the current keyboard type.

Parameters

keyboardType the keyboard type to render content under test in. This should be one of the Configuration.KEYBOARD_* types.
isHidden if true, render the content under test with a hidden keyboard.
isHardKeyboardHidden if true, render the content under test with a hidden hard keyboard.

Return

a DeviceConfigurationOverride that specifies the keyboard status 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: