public static interface TextInputChannel.TextInputMethodHandler
Modifier and Type | Method and Description |
---|---|
void |
clearClient() |
void |
finishAutofillContext(boolean shouldSave)
Requests that the
AutofillManager cancel or commit the current autofill context. |
void |
hide() |
void |
requestAutofill()
Requests that the autofill dropdown menu appear for the current client.
|
void |
sendAppPrivateCommand(String action,
Bundle data)
Sends client app private command to the current text input client(input method).
|
void |
setClient(int textInputClientId,
TextInputChannel.Configuration configuration) |
void |
setEditableSizeAndTransform(double width,
double height,
double[] transform)
Sets the size and the transform matrix of the current text input client.
|
void |
setEditingState(TextInputChannel.TextEditState editingState) |
void |
setPlatformViewClient(int id)
Sets a platform view as the text input client.
|
void |
show() |
void show()
void hide()
void requestAutofill()
Has no effect if the current client does not support autofill.
void finishAutofillContext(boolean shouldSave)
AutofillManager
cancel or commit the current autofill context.
The method calls AutofillManager.commit()
when shouldSave
is true, and calls AutofillManager.cancel()
otherwise.
shouldSave
- whether the active autofill service should save the current user input for
future use.void setClient(int textInputClientId, @NonNull TextInputChannel.Configuration configuration)
void setPlatformViewClient(int id)
Subsequent calls to createInputConnection will be delegated to the platform view until a different client is set.
id
- the ID of the platform view to be set as a text input client.void setEditableSizeAndTransform(double width, double height, double[] transform)
width
- the width of text input client. Must be finite.height
- the height of text input client. Must be finite.transform
- a 4x4 matrix that maps the local paint coordinate system to coordinate
system of the FlutterView that owns the current client.void setEditingState(@NonNull TextInputChannel.TextEditState editingState)
void clearClient()
void sendAppPrivateCommand(String action, Bundle data)
performPrivateCommand
.action
- Name of the command to be performed. This must be a scoped name. i.e. prefixed
with a package name you own, so that different developers will not create conflicting
commands.data
- Any data to include with the command.