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

DeleteSurroundingTextEditOp

data class DeleteSurroundingTextEditOp : EditOperation
kotlin.Any
   ↳ androidx.ui.input.DeleteSurroundingTextEditOp

An edit operation represents deleteSurroundingText callback from InputMethod

Summary

Public constructors

<init>(beforeLength: Int, afterLength: Int)

An edit operation represents deleteSurroundingText callback from InputMethod

Public methods

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.

Properties

Int

The number of characters in UTF-16 after the cursor to be deleted.

Int

The number of characters in UTF-16 before the cursor to be deleted.

Public constructors

<init>

DeleteSurroundingTextEditOp(
    beforeLength: Int,
    afterLength: Int)

An edit operation represents deleteSurroundingText callback from InputMethod

Public methods

process

fun process(buffer: EditingBuffer): Unit

Processes editing buffer with this edit operation.

Properties

afterLength

val afterLength: Int

The number of characters in UTF-16 after the cursor to be deleted.

beforeLength

val beforeLength: Int

The number of characters in UTF-16 before the cursor to be deleted.