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

BackspaceCommand

public final class BackspaceCommand implements EditCommand


Represents a backspace operation at the cursor position.

If there is composition, delete the text in the composition range. If there is no composition but there is selection, delete whole selected range. If there is no composition and selection, perform backspace key event at the cursor position.

Summary

Public constructors

Public methods

void

Apply the command on the editing buffer.

boolean
equals(Object other)
int
@NonNull String

Public constructors

BackspaceCommand

public BackspaceCommand()

Public methods

applyTo

public void applyTo(@NonNull EditingBuffer buffer)

Apply the command on the editing buffer.

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public @NonNull String toString()