performTextInputSelection

Function

Common

Deprecated Use the non deprecated overload

fun SemanticsNodeInteraction.performTextInputSelection(selection: TextRange)

Sends the given selection to this node in similar way to IME.

Parameters

selectionthe selection to send
Common
fun SemanticsNodeInteraction.performTextInputSelection(
    selection: TextRange,
    relativeToOriginalText: Boolean = true,
)

Sends the given selection to this node in similar way to IME.

Parameters

selectionthe selection to send
relativeToOriginalTexttrue if the selection is relative to the untransformed, original text. false if it is relative to the visual text following any transformations.