---
title: "onImeAction"
description: "Action to invoke the IME action handler configured on the node, as well as specify the type of
IME action provided by the node.

Expected to be used on editable text fields."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun SemanticsPropertyReceiver.onImeAction(
    imeActionType: ImeAction,
    label: String? = null,
    action: (() -> Boolean)?,
)
```


Action to invoke the IME action handler configured on the node, as well as specify the type of
IME action provided by the node.

Expected to be used on editable text fields.

#### Parameters

| | |
| --- | --- |
| imeActionType | The IME type, such as `ImeAction.Next` or `ImeAction.Search` |
| label | Optional label for this action. |
| action | Action to be performed when `SemanticsActions.OnImeAction` is called. |




