Function

performTextInputSelection

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

performTextInputSelection

Deprecated

Use the non deprecated overload

Source set: Common
fun SemanticsNodeInteraction.performTextInputSelection(selection: TextRange)

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

Parameters

selection the selection to send

performTextInputSelection

Source set: 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.

Last updated: