Flutter Engine
The Flutter Engine
|
Classes | |
class | Configuration |
class | InputType |
enum | TextCapitalization |
class | TextEditState |
interface | TextInputMethodHandler |
enum | TextInputType |
Public Member Functions | |
TextInputChannel (@NonNull DartExecutor dartExecutor) | |
void | requestExistingInputState () |
void | updateEditingState (int inputClientId, @NonNull String text, int selectionStart, int selectionEnd, int composingStart, int composingEnd) |
void | updateEditingStateWithDeltas (int inputClientId, @NonNull ArrayList< TextEditingDelta > batchDeltas) |
void | updateEditingStateWithTag (int inputClientId, @NonNull HashMap< String, TextEditState > editStates) |
void | newline (int inputClientId) |
void | go (int inputClientId) |
void | search (int inputClientId) |
void | send (int inputClientId) |
void | done (int inputClientId) |
void | next (int inputClientId) |
void | previous (int inputClientId) |
void | unspecifiedAction (int inputClientId) |
void | commitContent (int inputClientId, Map< String, Object > content) |
void | performPrivateCommand (int inputClientId, @NonNull String action, @NonNull Bundle data) |
void | setTextInputMethodHandler (@Nullable TextInputMethodHandler textInputMethodHandler) |
Public Attributes | |
final MethodChannel | channel |
Package Attributes | |
final MethodChannel.MethodCallHandler | parsingMethodHandler |
TextInputChannel
is a platform channel between Android and Flutter that is used to communicate information about the user's text input.
When the user presses an action button like "done" or "next", that action is sent from Android to Flutter through this TextInputChannel
.
When an input system in the Flutter app wants to show the keyboard, or hide it, or configure editing state, etc. a message is sent from Flutter to Android through this TextInputChannel
.
TextInputChannel
comes with a default io.flutter.plugin.common.MethodChannel.MethodCallHandler
that parses incoming messages from Flutter. Register a TextInputMethodHandler
to respond to standard Flutter text input messages.
Definition at line 44 of file TextInputChannel.java.
|
inline |
Constructs a TextInputChannel
that connects Android to the Dart code running in
.
dartExecutor
The given dartExecutor
is permitted to be idle or executing code.
See DartExecutor
.
Definition at line 168 of file TextInputChannel.java.
|
inline |
Instructs Flutter to commit inserted content back to the text channel.
Definition at line 332 of file TextInputChannel.java.
|
inline |
Instructs Flutter to execute a "done" action.
Definition at line 303 of file TextInputChannel.java.
|
inline |
Instructs Flutter to execute a "go" action.
Definition at line 282 of file TextInputChannel.java.
|
inline |
Instructs Flutter to execute a "newline" action.
Definition at line 275 of file TextInputChannel.java.
|
inline |
Instructs Flutter to execute a "next" action.
Definition at line 310 of file TextInputChannel.java.
|
inline |
Definition at line 339 of file TextInputChannel.java.
|
inline |
Instructs Flutter to execute a "previous" action.
Definition at line 317 of file TextInputChannel.java.
|
inline |
Instructs Flutter to reattach the last active text input client, if any.
This is necessary when the view hierarchy has been detached and reattached to a io.flutter.embedding.engine.FlutterEngine
, as the engine may have kept alive a text editing client on the Dart side.
Definition at line 180 of file TextInputChannel.java.
|
inline |
Instructs Flutter to execute a "search" action.
Definition at line 289 of file TextInputChannel.java.
|
inline |
Instructs Flutter to execute a "send" action.
Definition at line 296 of file TextInputChannel.java.
|
inline |
Sets the TextInputMethodHandler
which receives all events and requests that are parsed from the underlying platform channel.
Definition at line 376 of file TextInputChannel.java.
|
inline |
Instructs Flutter to execute an "unspecified" action.
Definition at line 324 of file TextInputChannel.java.
|
inline |
Instructs Flutter to update its text input editing state to reflect the given configuration.
Definition at line 209 of file TextInputChannel.java.
|
inline |
Definition at line 240 of file TextInputChannel.java.
|
inline |
Definition at line 255 of file TextInputChannel.java.
final MethodChannel io.flutter.embedding.engine.systemchannels.TextInputChannel.channel |
Definition at line 47 of file TextInputChannel.java.
|
package |
Definition at line 51 of file TextInputChannel.java.