Function

performTextReplacement

Replaces existing text with the given text in this node in similar way to IME.

performTextReplacement

Source set: Common
public fun SemanticsNodeInteraction.performTextReplacement(text: String)

Replaces existing text with the given text in this node in similar way to IME.

This does not reflect text selection. All the text gets cleared out and new inserted.

Parameters

text Text to send.
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: