The Android Developer Challenge is back! Submit your idea before December 2.

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.

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

See Also

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.