Function

getTextLayoutResult

Action to get a Text/TextField node's TextLayoutResult.

getTextLayoutResult

Source set: Common
public fun SemanticsPropertyReceiver.getTextLayoutResult(
    label: String? = null,
    action: ((MutableList<TextLayoutResult>) -> Boolean)?,
): Unit

Action to get a Text/TextField node's TextLayoutResult. The result is the first element of layout (the argument of the AccessibilityAction).

Parameters

label Optional label for this action.
action Action to be performed when the SemanticsActions.GetTextLayoutResult 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: