# KeypadInputCommands

# KeypadInputCommands


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface KeypadInputCommands
```

<br />

Known direct subclasses [KeypadInput](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInput)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInput` | API for the KeypadInput trait. |

*** ** * ** ***

Commands for the KeypadInput trait.

## Summary

| ### Public functions |
|---|---|
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.SendKeyCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputCommands#sendKey(com.google.home.matter.standard.KeypadInputTrait.CecKeyCodeEnum)(keyCode: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.CecKeyCodeEnum)` Process a key code as input to the media device. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.SendKeyCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputCommands#sendKeyBatchable(com.google.home.matter.standard.KeypadInputTrait.CecKeyCodeEnum)(keyCode: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.CecKeyCodeEnum)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputCommands#sendKey(com.google.home.matter.standard.KeypadInputTrait.CecKeyCodeEnum)` command. |

## Public functions

### sendKey

```
suspend fun sendKey(keyCode: KeypadInputTrait.CecKeyCodeEnum): KeypadInputTrait.SendKeyCommand.Response
```

Process a key code as input to the media device.

| Parameters |
|---|---|
| `keyCode: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.CecKeyCodeEnum` | The key code to process. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.SendKeyCommand.Response` | The result of the `SendKey` command. |

### sendKeyBatchable

```
fun sendKeyBatchable(keyCode: KeypadInputTrait.CecKeyCodeEnum): BatchableCommand<KeypadInputTrait.SendKeyCommand.Response>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputCommands#sendKey(com.google.home.matter.standard.KeypadInputTrait.CecKeyCodeEnum)` command.

Process a key code as input to the media device.

| Parameters |
|---|---|
| `keyCode: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.CecKeyCodeEnum` | The key code to process. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.SendKeyCommand.Response>` | BatchableCommand |