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

DeleteSurroundingTextInCodePointsCommand


A variant of DeleteSurroundingTextCommand. The difference is that

See deleteSurroundingTextInCodePoints.

Summary

Public constructors

DeleteSurroundingTextInCodePointsCommand(
    lengthBeforeCursor: Int,
    lengthAfterCursor: Int
)
Cmn

Public functions

open Unit

Apply the command on the editing buffer.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Int

The number of characters in Unicode code points after the cursor to be deleted.

Cmn
Int

The number of characters in Unicode code points before the cursor to be deleted.

Cmn

Public constructors

DeleteSurroundingTextInCodePointsCommand

DeleteSurroundingTextInCodePointsCommand(
    lengthBeforeCursor: Int,
    lengthAfterCursor: Int
)
Parameters
lengthBeforeCursor: Int

The number of characters in Unicode code points before the cursor to be deleted. Must be non-negative.

lengthAfterCursor: Int

The number of characters in Unicode code points after the cursor to be deleted. Must be non-negative.

Public functions

applyTo

open fun applyTo(buffer: EditingBuffer): Unit

Apply the command on the editing buffer.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

lengthAfterCursor

val lengthAfterCursorInt

The number of characters in Unicode code points after the cursor to be deleted. Must be non-negative.

lengthBeforeCursor

val lengthBeforeCursorInt

The number of characters in Unicode code points before the cursor to be deleted. Must be non-negative.