The Developer Preview for Android 11 is now available; test it out and share your feedback.

BackspaceKeyEditOp

class BackspaceKeyEditOp : EditOperation
kotlin.Any
   ↳ androidx.ui.input.BackspaceKeyEditOp

An edit operation represents backspace keyevent

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

An edit operation represents backspace keyevent

Public methods

Boolean
equals(other: Any?)

Int

Unit

Processes editing buffer with this edit operation.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Public constructors

<init>

BackspaceKeyEditOp()

An edit operation represents backspace keyevent

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.

Public methods

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

process

fun process(buffer: EditingBuffer): Unit

Processes editing buffer with this edit operation.