SetComposingTextCommand


Replace the currently composing text with the given text, and set the new cursor position. Any composing text set previously will be removed automatically.

See setComposingText.

Summary

Public constructors

SetComposingTextCommand(
    annotatedString: AnnotatedString,
    newCursorPosition: Int
)
Cmn
SetComposingTextCommand(text: String, newCursorPosition: Int)
Cmn

Public functions

open Unit

Apply the command on the editing buffer.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

AnnotatedString

The composing text.

Cmn
Int

The cursor position after setting composing text.

Cmn
String
Cmn

Public constructors

SetComposingTextCommand

SetComposingTextCommand(
    annotatedString: AnnotatedString,
    newCursorPosition: Int
)
Parameters
annotatedString: AnnotatedString

The composing text.

newCursorPosition: Int

The cursor position after setting composing text.

SetComposingTextCommand

SetComposingTextCommand(text: String, newCursorPosition: Int)

Public functions

applyTo

open fun applyTo(buffer: EditingBuffer): Unit

Apply the command on the editing buffer.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

annotatedString

val annotatedStringAnnotatedString

The composing text.

newCursorPosition

val newCursorPositionInt

The cursor position after setting composing text.

text

val textString