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

selection the 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

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