Package io.flutter.plugin.editing
Class InputConnectionAdaptor
java.lang.Object
android.view.inputmethod.BaseInputConnection
io.flutter.plugin.editing.InputConnectionAdaptor
- All Implemented Interfaces:
InputConnection
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface android.view.inputmethod.InputConnection
CURSOR_UPDATE_FILTER_CHARACTER_BOUNDS, CURSOR_UPDATE_FILTER_EDITOR_BOUNDS, CURSOR_UPDATE_FILTER_INSERTION_MARKER, CURSOR_UPDATE_FILTER_TEXT_APPEARANCE, CURSOR_UPDATE_FILTER_VISIBLE_LINE_BOUNDS, CURSOR_UPDATE_IMMEDIATE, CURSOR_UPDATE_MONITOR, GET_EXTRACTED_TEXT_MONITOR, GET_TEXT_WITH_STYLES, HANDWRITING_GESTURE_RESULT_CANCELLED, HANDWRITING_GESTURE_RESULT_FAILED, HANDWRITING_GESTURE_RESULT_FALLBACK, HANDWRITING_GESTURE_RESULT_SUCCESS, HANDWRITING_GESTURE_RESULT_UNKNOWN, HANDWRITING_GESTURE_RESULT_UNSUPPORTED, INPUT_CONTENT_GRANT_READ_URI_PERMISSION -
Constructor Summary
ConstructorsConstructorDescriptionInputConnectionAdaptor(View view, int client, TextInputChannel textInputChannel, ScribeChannel scribeChannel, InputConnectionAdaptor.KeyboardDelegate keyboardDelegate, io.flutter.plugin.editing.ListenableEditingState editable, EditorInfo editorInfo) InputConnectionAdaptor(View view, int client, TextInputChannel textInputChannel, ScribeChannel scribeChannel, InputConnectionAdaptor.KeyboardDelegate keyboardDelegate, io.flutter.plugin.editing.ListenableEditingState editable, EditorInfo editorInfo, FlutterJNI flutterJNI) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanclearMetaKeyStates(int states) voidbooleancommitContent(InputContentInfo inputContentInfo, int flags, Bundle opts) booleancommitText(CharSequence text, int newCursorPosition) booleandeleteSurroundingText(int beforeLength, int afterLength) booleandeleteSurroundingTextInCodePoints(int beforeLength, int afterLength) voiddidChangeEditingState(boolean textChanged, boolean selectionChanged, boolean composingRegionChanged) booleanbooleangetExtractedText(ExtractedTextRequest request, int flags) booleanhandleKeyEvent(KeyEvent event) booleanperformContextMenuAction(int id) booleanperformEditorAction(int actionCode) booleanperformPrivateCommand(String action, Bundle data) booleanrequestCursorUpdates(int cursorUpdateMode) booleansendKeyEvent(KeyEvent event) booleansetComposingRegion(int start, int end) booleansetComposingText(CharSequence text, int newCursorPosition) booleansetSelection(int start, int end) Methods inherited from class android.view.inputmethod.BaseInputConnection
commitCompletion, commitCorrection, getComposingSpanEnd, getComposingSpanStart, getCursorCapsMode, getHandler, getSelectedText, getSurroundingText, getTextAfterCursor, getTextBeforeCursor, removeComposingSpans, replaceText, reportFullscreenMode, setComposingSpans, takeSnapshotMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface android.view.inputmethod.InputConnection
commitText, performHandwritingGesture, performSpellCheck, previewHandwritingGesture, requestCursorUpdates, requestTextBoundsInfo, setComposingRegion, setComposingText, setImeConsumesInput
-
Constructor Details
-
InputConnectionAdaptor
public InputConnectionAdaptor(View view, int client, TextInputChannel textInputChannel, ScribeChannel scribeChannel, InputConnectionAdaptor.KeyboardDelegate keyboardDelegate, io.flutter.plugin.editing.ListenableEditingState editable, EditorInfo editorInfo, FlutterJNI flutterJNI) -
InputConnectionAdaptor
public InputConnectionAdaptor(View view, int client, TextInputChannel textInputChannel, ScribeChannel scribeChannel, InputConnectionAdaptor.KeyboardDelegate keyboardDelegate, io.flutter.plugin.editing.ListenableEditingState editable, EditorInfo editorInfo)
-
-
Method Details
-
getEditable
- Overrides:
getEditablein classBaseInputConnection
-
beginBatchEdit
public boolean beginBatchEdit()- Specified by:
beginBatchEditin interfaceInputConnection- Overrides:
beginBatchEditin classBaseInputConnection
-
endBatchEdit
public boolean endBatchEdit()- Specified by:
endBatchEditin interfaceInputConnection- Overrides:
endBatchEditin classBaseInputConnection
-
commitText
- Specified by:
commitTextin interfaceInputConnection- Overrides:
commitTextin classBaseInputConnection
-
deleteSurroundingText
public boolean deleteSurroundingText(int beforeLength, int afterLength) - Specified by:
deleteSurroundingTextin interfaceInputConnection- Overrides:
deleteSurroundingTextin classBaseInputConnection
-
deleteSurroundingTextInCodePoints
public boolean deleteSurroundingTextInCodePoints(int beforeLength, int afterLength) - Specified by:
deleteSurroundingTextInCodePointsin interfaceInputConnection- Overrides:
deleteSurroundingTextInCodePointsin classBaseInputConnection
-
setComposingRegion
public boolean setComposingRegion(int start, int end) - Specified by:
setComposingRegionin interfaceInputConnection- Overrides:
setComposingRegionin classBaseInputConnection
-
setComposingText
- Specified by:
setComposingTextin interfaceInputConnection- Overrides:
setComposingTextin classBaseInputConnection
-
finishComposingText
public boolean finishComposingText()- Specified by:
finishComposingTextin interfaceInputConnection- Overrides:
finishComposingTextin classBaseInputConnection
-
getExtractedText
- Specified by:
getExtractedTextin interfaceInputConnection- Overrides:
getExtractedTextin classBaseInputConnection
-
requestCursorUpdates
public boolean requestCursorUpdates(int cursorUpdateMode) - Specified by:
requestCursorUpdatesin interfaceInputConnection- Overrides:
requestCursorUpdatesin classBaseInputConnection
-
clearMetaKeyStates
public boolean clearMetaKeyStates(int states) - Specified by:
clearMetaKeyStatesin interfaceInputConnection- Overrides:
clearMetaKeyStatesin classBaseInputConnection
-
closeConnection
public void closeConnection()- Specified by:
closeConnectionin interfaceInputConnection- Overrides:
closeConnectionin classBaseInputConnection
-
setSelection
public boolean setSelection(int start, int end) - Specified by:
setSelectionin interfaceInputConnection- Overrides:
setSelectionin classBaseInputConnection
-
sendKeyEvent
- Specified by:
sendKeyEventin interfaceInputConnection- Overrides:
sendKeyEventin classBaseInputConnection
-
handleKeyEvent
-
performContextMenuAction
public boolean performContextMenuAction(int id) - Specified by:
performContextMenuActionin interfaceInputConnection- Overrides:
performContextMenuActionin classBaseInputConnection
-
performPrivateCommand
- Specified by:
performPrivateCommandin interfaceInputConnection- Overrides:
performPrivateCommandin classBaseInputConnection
-
performEditorAction
public boolean performEditorAction(int actionCode) - Specified by:
performEditorActionin interfaceInputConnection- Overrides:
performEditorActionin classBaseInputConnection
-
commitContent
- Specified by:
commitContentin interfaceInputConnection- Overrides:
commitContentin classBaseInputConnection
-
didChangeEditingState
public void didChangeEditingState(boolean textChanged, boolean selectionChanged, boolean composingRegionChanged)
-