DeleteSurroundingTextInCodePointsCommand
Class
Common
class DeleteSurroundingTextInCodePointsCommand(
val lengthBeforeCursor: Int,
val lengthAfterCursor: Int,
) : EditCommand
A variant of DeleteSurroundingTextCommand
. The difference is that
- The lengths are supplied in code points, not in chars.
- This command does nothing if there are one or more invalid surrogate pairs in the requested range.
See
deleteSurroundingTextInCodePoints
(https://developer.android.com/reference/android/view/inputmethod/InputConnection.html#deleteSurroundingTextInCodePoints(int,%2520int)).
Parameters
lengthBeforeCursor | The number of characters in Unicode code points before the cursor to be deleted. Must be non-negative. |
lengthAfterCursor | The number of characters in Unicode code points after the cursor to be deleted. Must be non-negative. |