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


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

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


> **Deprecated** Use PlatformTextInputModifierNode instead.


```kotlin
interface PlatformTextInputService
```


Platform specific text input service.


## Functions



<h2 id="startinput-value-imeoptions-oneditcommand-onimeactionperformed">startInput</h2>

```kotlin
fun startInput(
        value: TextFieldValue,
        imeOptions: ImeOptions,
        onEditCommand: (List<EditCommand>) -> Unit,
        onImeActionPerformed: (ImeAction) -> Unit,
    )
```


Start text input session for given client.




<hr class="docs-overload-divider">


<h2 id="startinput">startInput</h2>

```kotlin
fun startInput()
```


Restart input and show the keyboard. This should only be called when starting a new
`PlatformTextInputModifierNode.textInputSession`.




<hr class="docs-overload-divider">


<h2 id="stopinput">stopInput</h2>

```kotlin
fun stopInput()
```


Stop text input session.




<hr class="docs-overload-divider">


<h2 id="showsoftwarekeyboard">showSoftwareKeyboard</h2>

```kotlin
fun showSoftwareKeyboard()
```


Request showing onscreen keyboard

There is no guarantee nor callback of the result of this API.




<hr class="docs-overload-divider">


<h2 id="hidesoftwarekeyboard">hideSoftwareKeyboard</h2>

```kotlin
fun hideSoftwareKeyboard()
```


Hide software keyboard




<hr class="docs-overload-divider">


<h2 id="updatestate-oldvalue-newvalue">updateState</h2>

```kotlin
fun updateState(oldValue: TextFieldValue?, newValue: TextFieldValue)
```


Notify the new editor model to IME.




<hr class="docs-overload-divider">


<h2 id="notifyfocusedrect-rect">notifyFocusedRect</h2>

```kotlin
fun notifyFocusedRect(rect: Rect)
```


Notify the focused rectangle to the system.

The system can ignore this information or use it to for additional functionality.

For example, desktop systems show a popup near the focused input area (for some languages).




<hr class="docs-overload-divider">


<h2 id="updatetextlayoutresult-textfieldvalue-offsetmapping-textlayoutresult-textfieldtoroottransform-innertextfieldbounds-decorationboxbounds">updateTextLayoutResult</h2>

```kotlin
fun updateTextLayoutResult(
        textFieldValue: TextFieldValue,
        offsetMapping: OffsetMapping,
        textLayoutResult: TextLayoutResult,
        textFieldToRootTransform: (Matrix) -> Unit,
        innerTextFieldBounds: Rect,
        decorationBoxBounds: Rect,
    )
```


Notify the input service of layout and position changes.