Class TextInputPlugin


  • public class TextInputPlugin
    extends Object
    Android implementation of the text input plugin.
    • Method Detail

      • destroy

        public void destroy()
        Detaches the text input plugin from the platform views controller.

        The TextInputPlugin instance should not be used after calling this.

      • getLastInputConnection

        @Nullable
        public InputConnection getLastInputConnection()
      • clearPlatformViewClient

        public void clearPlatformViewClient​(int platformViewId)
        Clears a platform view text input client if it is the current input target.

        This is called when a platform view is disposed to make sure we're not hanging to a stale input connection.

      • sendTextInputAppPrivateCommand

        public void sendTextInputAppPrivateCommand​(@NonNull
                                                   String action,
                                                   @NonNull
                                                   Bundle data)
      • handleKeyEvent

        public boolean handleKeyEvent​(@NonNull
                                      KeyEvent keyEvent)
      • didChangeEditingState

        public void didChangeEditingState​(boolean textChanged,
                                          boolean selectionChanged,
                                          boolean composingRegionChanged)
      • onProvideAutofillVirtualStructure

        public void onProvideAutofillVirtualStructure​(@NonNull
                                                      ViewStructure structure,
                                                      int flags)