IME private command docs improvement (#68630)
Just a docs-only improvement in EditableText and text input.
This commit is contained in:
parent
3300a1bd68
commit
c12d9b9c19
@ -824,7 +824,19 @@ abstract class TextInputClient {
|
|||||||
/// Requests that this client perform the given action.
|
/// Requests that this client perform the given action.
|
||||||
void performAction(TextInputAction 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);
|
void performPrivateCommand(String action, Map<String, dynamic> data);
|
||||||
|
|
||||||
/// Updates the floating cursor position and state.
|
/// Updates the floating cursor position and state.
|
||||||
|
@ -1081,7 +1081,21 @@ class EditableText extends StatefulWidget {
|
|||||||
final ValueChanged<String>? onSubmitted;
|
final ValueChanged<String>? onSubmitted;
|
||||||
|
|
||||||
/// {@template flutter.widgets.editableText.onAppPrivateCommand}
|
/// {@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}
|
/// {@endtemplate}
|
||||||
final AppPrivateCommandCallback? onAppPrivateCommand;
|
final AppPrivateCommandCallback? onAppPrivateCommand;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user