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


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


<h2 id="keyboard-ishardkeyboardhidden-ishidden">Keyboard</h2>

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


```kotlin
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. |