Function

Keyboard

A [DeviceConfigurationOverride] that overrides the current keyboard type.

Keyboard

Android
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.

Returns

a DeviceConfigurationOverride that specifies the keyboard status for the content under test.