🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

onImeAction

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

onImeAction

Source set: Common
public fun SemanticsPropertyReceiver.onImeAction(
    imeActionType: ImeAction,
    label: String? = null,
    action: (() -> Boolean)?,
): Unit

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.