Android 12 Developer Preview is here! Try it out, and give us your feedback!

SetComposingRegionCommand

class SetComposingRegionCommand : EditCommand
kotlin.Any
   ↳ androidx.compose.ui.text.input.SetComposingRegionCommand

Mark a certain region of text as composing text.

Summary

Public constructors
<init>(start: Int, end: Int)

Mark a certain region of text as composing text.

Public methods
Unit

Apply the command on the editing buffer.

Boolean
equals(other: Any?)

Int

String

Properties
Int

The exclusive end offset of the composing region

Int

The inclusive start offset of the composing region.

Public constructors

<init>

SetComposingRegionCommand(
    start: Int,
    end: Int)

Mark a certain region of text as composing text.

Public methods

applyTo

fun applyTo(buffer: EditingBuffer): Unit

Apply the command on the editing buffer.

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String

Properties

end

val end: Int

The exclusive end offset of the composing region

start

val start: Int

The inclusive start offset of the composing region.