Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
io.flutter.embedding.engine.systemchannels.TextInputChannel.TextInputMethodHandler Interface Reference

Public Member Functions

void show ()
 
void hide ()
 
void requestAutofill ()
 
void finishAutofillContext (boolean shouldSave)
 
void setClient (int textInputClientId, @NonNull Configuration configuration)
 
void setPlatformViewClient (int id, boolean usesVirtualDisplay)
 
void setEditableSizeAndTransform (double width, double height, @NonNull double[] transform)
 
void setEditingState (@NonNull TextEditState editingState)
 
void clearClient ()
 
void sendAppPrivateCommand (@NonNull String action, @NonNull Bundle data)
 

Detailed Description

Definition at line 380 of file TextInputChannel.java.

Member Function Documentation

◆ clearClient()

void io.flutter.embedding.engine.systemchannels.TextInputChannel.TextInputMethodHandler.clearClient ( )

◆ finishAutofillContext()

void io.flutter.embedding.engine.systemchannels.TextInputChannel.TextInputMethodHandler.finishAutofillContext ( boolean  shouldSave)

Requests that the android.view.autofill.AutofillManager cancel or commit the current autofill context.

The method calls android.view.autofill.AutofillManager#commit() when
shouldSave
is true, and calls android.view.autofill.AutofillManager#cancel() otherwise.

Parameters
shouldSavewhether the active autofill service should save the current user input for future use.

◆ hide()

void io.flutter.embedding.engine.systemchannels.TextInputChannel.TextInputMethodHandler.hide ( )

◆ requestAutofill()

void io.flutter.embedding.engine.systemchannels.TextInputChannel.TextInputMethodHandler.requestAutofill ( )

Requests that the autofill dropdown menu appear for the current client.

Has no effect if the current client does not support autofill.

◆ sendAppPrivateCommand()

void io.flutter.embedding.engine.systemchannels.TextInputChannel.TextInputMethodHandler.sendAppPrivateCommand ( @NonNull String  action,
@NonNull Bundle  data 
)

Sends client app private command to the current text input client(input method). The app private command result will be informed through performPrivateCommand.

Parameters
actionName 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.
dataAny data to include with the command.

◆ setClient()

void io.flutter.embedding.engine.systemchannels.TextInputChannel.TextInputMethodHandler.setClient ( int  textInputClientId,
@NonNull Configuration  configuration 
)

◆ setEditableSizeAndTransform()

void io.flutter.embedding.engine.systemchannels.TextInputChannel.TextInputMethodHandler.setEditableSizeAndTransform ( double  width,
double  height,
@NonNull double[]  transform 
)

Sets the size and the transform matrix of the current text input client.

Parameters
widththe width of text input client. Must be finite.
heightthe height of text input client. Must be finite.
transforma 4x4 matrix that maps the local paint coordinate system to coordinate system of the FlutterView that owns the current client.

◆ setEditingState()

void io.flutter.embedding.engine.systemchannels.TextInputChannel.TextInputMethodHandler.setEditingState ( @NonNull TextEditState  editingState)

◆ setPlatformViewClient()

void io.flutter.embedding.engine.systemchannels.TextInputChannel.TextInputMethodHandler.setPlatformViewClient ( int  id,
boolean  usesVirtualDisplay 
)

Sets a platform view as the text input client.

Subsequent calls to createInputConnection will be delegated to the platform view until a different client is set.

Parameters
idthe ID of the platform view to be set as a text input client.
usesVirtualDisplayTrue if the platform view uses a virtual display, false if it uses hybrid composition.

◆ show()

void io.flutter.embedding.engine.systemchannels.TextInputChannel.TextInputMethodHandler.show ( )

The documentation for this interface was generated from the following file: