Class TextInputChannel.TextEditState
java.lang.Object
io.flutter.embedding.engine.systemchannels.TextInputChannel.TextEditState
- Enclosing class:
- TextInputChannel
State of an on-going text editing session.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTextEditState
(String text, int selectionStart, int selectionEnd, int composingStart, int composingEnd) -
Method Summary
-
Field Details
-
text
-
selectionStart
public final int selectionStart -
selectionEnd
public final int selectionEnd -
composingStart
public final int composingStart -
composingEnd
public final int composingEnd
-
-
Constructor Details
-
TextEditState
public TextEditState(@NonNull String text, int selectionStart, int selectionEnd, int composingStart, int composingEnd) throws IndexOutOfBoundsException - Throws:
IndexOutOfBoundsException
-
-
Method Details
-
fromJson
@NonNull public static TextInputChannel.TextEditState fromJson(@NonNull JSONObject textEditState) throws JSONException - Throws:
JSONException
-
hasSelection
public boolean hasSelection() -
hasComposing
public boolean hasComposing()
-