---
title: "InputEventCallback"
description: "An interface of listening IME events."
type: "interface"
---

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


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

<div class='sourceset sourceset-common'>Common</div>


> **Deprecated** This function is not being used by any APIs. API is now deprecated and will be removed


```kotlin
interface InputEventCallback
```


An interface of listening IME events.


## Functions

```kotlin
fun onEditCommands(editCommands: List<EditCommand>)
```


Called when IME sends some input events.

#### Parameters

| | |
| --- | --- |
| editCommands | The list of edit commands. |



```kotlin
fun onImeAction(imeAction: ImeAction)
```


Called when IME triggered IME action.

#### Parameters

| | |
| --- | --- |
| imeAction | An IME action. |




