public static class TextInputChannel.TextEditState extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
composingEnd |
int |
composingStart |
int |
selectionEnd |
int |
selectionStart |
String |
text |
| Constructor and Description |
|---|
TextEditState(String text,
int selectionStart,
int selectionEnd,
int composingStart,
int composingEnd) |
| Modifier and Type | Method and Description |
|---|---|
static TextInputChannel.TextEditState |
fromJson(JSONObject textEditState) |
boolean |
hasComposing() |
boolean |
hasSelection() |
@NonNull public final String text
public final int selectionStart
public final int selectionEnd
public final int composingStart
public final int composingEnd
public TextEditState(@NonNull
String text,
int selectionStart,
int selectionEnd,
int composingStart,
int composingEnd)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionpublic static TextInputChannel.TextEditState fromJson(@NonNull JSONObject textEditState) throws JSONException
JSONExceptionpublic boolean hasSelection()
public boolean hasComposing()