CommitTextCommand


Commit final text to the text box and set the new cursor position.

See commitText.

Summary

Public constructors

CommitTextCommand(
    annotatedString: AnnotatedString,
    newCursorPosition: Int
)
Cmn
CommitTextCommand(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 text to commit.

Cmn
Int

The cursor position after inserted text.

Cmn
String
Cmn

Public constructors

CommitTextCommand

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

The text to commit.

newCursorPosition: Int

The cursor position after inserted text.

CommitTextCommand

CommitTextCommand(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 text to commit.

newCursorPosition

val newCursorPositionInt

The cursor position after inserted text.

text

val textString