# InputEventCallback

Artifact: [androidx.compose.ui:ui-text](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/text/input/InputEventCallback.kt+class:androidx.compose.ui.text.input.InputEventCallback) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  interface InputEventCallback
  ```

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
> This function is not being used by any APIs. API is now deprecated and will be removed

An interface of listening IME events.

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onEditCommands](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/InputEventCallback#onEditCommands(kotlin.collections.List))(editCommands: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/EditCommand>)` **This function is deprecated.** This function is not being used by any APIs. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onImeAction](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/InputEventCallback#onImeAction(androidx.compose.ui.text.input.ImeAction))(imeAction: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/ImeAction)` **This function is deprecated.** This function is not being used by any APIs. | Cmn |

## Public functions

### onEditCommands

Cmn

```
fun [onEditCommands](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/InputEventCallback#onEditCommands(kotlin.collections.List))(editCommands: List<EditCommand>): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> This function is not being used by any APIs. API is now deprecated and will be removed

Called when IME sends some input events.

| Parameters |
|---|---|
| `editCommands: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/EditCommand>` | The list of edit commands. |

### onImeAction

Cmn Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0) Deprecated in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun [onImeAction](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/InputEventCallback#onImeAction(androidx.compose.ui.text.input.ImeAction))(imeAction: ImeAction): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> This function is not being used by any APIs. API is now deprecated and will be removed

Called when IME triggered IME action.

| Parameters |
|---|---|
| `imeAction: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/ImeAction` | An IME action. |