{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

SetComposingRegionCommand

public final class SetComposingRegionCommand implements EditCommand


Mark a certain region of text as composing text.

See setComposingRegion.

Summary

Public constructors

SetComposingRegionCommand(int start, int end)

Public methods

void

Apply the command on the editing buffer.

boolean
equals(Object other)
final int

The exclusive end offset of the composing region

final int

The inclusive start offset of the composing region.

int
@NonNull String

Public constructors

SetComposingRegionCommand

public SetComposingRegionCommand(int start, int end)
Parameters
int start

The inclusive start offset of the composing region.

int end

The exclusive end offset of the composing region

Public methods

applyTo

public void applyTo(@NonNull EditingBuffer buffer)

Apply the command on the editing buffer.

equals

public boolean equals(Object other)

getEnd

public final int getEnd()

The exclusive end offset of the composing region

getStart

public final int getStart()

The inclusive start offset of the composing region.

hashCode

public int hashCode()

toString

public @NonNull String toString()