---
title: "EditCommand"
description: "[EditCommand] is a command representation for the platform IME API function calls. The commands
from the IME as function calls are translated into command pattern and used by
[TextInputService.startInput]. For example, as a result of commit text function call by IME
[CommitTextCommand] is created."
type: "interface"
---

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


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

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



```kotlin
interface EditCommand
```


`EditCommand` is a command representation for the platform IME API function calls. The commands
from the IME as function calls are translated into command pattern and used by
`TextInputService.startInput`. For example, as a result of commit text function call by IME
`CommitTextCommand` is created.


## Functions

```kotlin
fun applyTo(buffer: EditingBuffer)
```


Apply the command on the editing buffer.



