notifySurrounding
open fun notifySurrounding(text: String, length: <Error class: unknown class>, cursorIndex: <Error class: unknown class>, selectionIndex: <Error class: unknown class>)
Notify @context that the context surrounding the cursor has changed.
If there's no selection @selection_index is the same as @cursor_index.
Since
2.28
Parameters
text
text surrounding the insertion point
length
the length of @text, or -1 if @text is nul-terminated
cursorIndex
the byte index of the insertion cursor within @text.
selectionIndex
the byte index of the selection cursor within @text.