# KeypadInput

# KeypadInput


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface KeypadInput : KeypadInputTrait.Attributes, MatterTrait, KeypadInputCommands
```

<br />

*** ** * ** ***

API for the KeypadInput trait. This trait provides an interface for key code based input and control on a device such as a video player or an endpoint such as a content app.

## Summary

| ### Nested types |
|---|
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInput.Attribute : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this trait's attributes. |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInput.Command : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html` Descriptor enum for this trait's commands. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInput#supports(com.google.home.matter.standard.KeypadInput.Attribute)(attribute: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInput.Attribute)` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInput#supports(com.google.home.matter.standard.KeypadInput.Command)(command: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInput.Command)` |

| ### Public properties |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/TraitFactory<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#factory()` |

| ### Inherited functions |
|---|
| From [com.google.home.matter.standard.KeypadInputCommands](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputCommands) |---|---| | `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. | |
| From [com.google.home.matter.standard.KeypadInputTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.Attributes) |---|---| | `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.Attributes#getDescriptor()()` Returns the descriptor for the struct. | | `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.Attributes#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. | |
| From [com.google.home.TraitStateInvalidation](https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation) |---|---| | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation#forceRead()()` | |

| ### Inherited properties |
|---|
| From [com.google.home.matter.standard.KeypadInputTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.Attributes) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.Attributes#acceptedCommandList()` A list of client-generated commands which are supported by this cluster server instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.Attributes#attributeList()` A list of the attribute IDs of the attributes supported by the cluster instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.Attributes#clusterRevision()` The revision of the server cluster specification supported by the cluster instance. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.Feature` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.Attributes#featureMap()` Whether the server supports zero or more optional cluster features. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/KeypadInputTrait.Attributes#generatedCommandList()` A list of server-generated commands (server to client) which are supported by this cluster server instance. | |
| From [com.google.home.Trait](https://developers.home.google.com/reference/kotlin/com/google/home/Trait) |---|---| | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata` | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait#metadata()` | |

## Public functions

### supports

```
fun supports(attribute: KeypadInput.Attribute): Boolean
```

### supports

```
fun supports(command: KeypadInput.Command): Boolean
```

## Public properties

### factory

```
open val factory: TraitFactory<KeypadInput>
```