getTextLayoutResult

Function

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

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

Parameters

labelOptional label for this action.
actionAction to be performed when the SemanticsActions.GetTextLayoutResult is called.