Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
c12d9b9c
Unverified
Commit
c12d9b9c
authored
Oct 27, 2020
by
Justin McCandless
Committed by
GitHub
Oct 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IME private command docs improvement (#68630)
Just a docs-only improvement in EditableText and text input.
parent
3300a1bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
text_input.dart
packages/flutter/lib/src/services/text_input.dart
+13
-1
editable_text.dart
packages/flutter/lib/src/widgets/editable_text.dart
+15
-1
No files found.
packages/flutter/lib/src/services/text_input.dart
View file @
c12d9b9c
...
...
@@ -824,7 +824,19 @@ abstract class TextInputClient {
/// Requests that this client perform the given action.
void
performAction
(
TextInputAction
action
);
/// Requests that this client perform the private command.
/// Request from the input method that this client perform the given private
/// command.
///
/// This can be used to provide domain-specific features that are only known
/// between certain input methods and their clients.
///
/// See also:
/// * [https://developer.android.com/reference/android/view/inputmethod/InputConnection#performPrivateCommand(java.lang.String,%20android.os.Bundle)],
/// which is the Android documentation for performPrivateCommand, used to
/// send a command from the input method.
/// * [https://developer.android.com/reference/android/view/inputmethod/InputMethodManager#sendAppPrivateCommand],
/// which is the Android documentation for sendAppPrivateCommand, used to
/// send a command to the input method.
void
performPrivateCommand
(
String
action
,
Map
<
String
,
dynamic
>
data
);
/// Updates the floating cursor position and state.
...
...
packages/flutter/lib/src/widgets/editable_text.dart
View file @
c12d9b9c
...
...
@@ -1081,7 +1081,21 @@ class EditableText extends StatefulWidget {
final
ValueChanged
<
String
>?
onSubmitted
;
/// {@template flutter.widgets.editableText.onAppPrivateCommand}
/// Called when the result of an app private command is received.
/// This is used to receive a private command from the input method.
///
/// Called when the result of [TextInputClient.performPrivateCommand] is
/// received.
///
/// This can be used to provide domain-specific features that are only known
/// between certain input methods and their clients.
///
/// See also:
/// * [https://developer.android.com/reference/android/view/inputmethod/InputConnection#performPrivateCommand(java.lang.String,%20android.os.Bundle)],
/// which is the Android documentation for performPrivateCommand, used to
/// send a command from the input method.
/// * [https://developer.android.com/reference/android/view/inputmethod/InputMethodManager#sendAppPrivateCommand],
/// which is the Android documentation for sendAppPrivateCommand, used to
/// send a command to the input method.
/// {@endtemplate}
final
AppPrivateCommandCallback
?
onAppPrivateCommand
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment