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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: