getInitialTextBeforeCursor
open fun getInitialTextBeforeCursor(@NonNull editorInfo: EditorInfo, length: Int, flags: Int): CharSequence(source)
Get n characters of text before the current cursor position. May be null
when the protocol is not supported.
Return
the text before the cursor position; the length of the returned text might be less than n. When there is no text before the cursor, an empty string will be returned. It could also be null
when the editor or system could not support this protocol.
Parameters
editorInfo
the editor with which to get the text.
length
The expected length of the text.
flags
Supplies additional options controlling how the text is returned. May be either 0 or GET_TEXT_WITH_STYLES.