imeSetComposition

suspend fun imeSetComposition(args: Input.ImeSetCompositionParameter, mode: CommandMode = CommandMode.DEFAULT)

This method sets the current candidate text for IME. Use imeCommitComposition to commit the final text. Use imeSetComposition with empty string as text to cancel composition.


suspend fun imeSetComposition(text: String, selectionStart: Int, selectionEnd: Int, replacementStart: Int? = null, replacementEnd: Int? = null)

This method sets the current candidate text for IME. Use imeCommitComposition to commit the final text. Use imeSetComposition with empty string as text to cancel composition.

Parameters

text

The text to insert

selectionStart

selection start

selectionEnd

selection end

replacementStart

replacement start

replacementEnd

replacement end