BaseInputConnection

Class of android.view.inputmethod · BaseInputConnection.java · Android's reference

public class BaseInputConnection implements InputConnection

An input connection that sends key events to its view.

Fields

protected final View mTargetView source

Constructors

public BaseInputConnection(View targetView, boolean fullEditor) source

Methods

public CharSequence getTextBeforeCursor(int n, int flags) source
public CharSequence getTextAfterCursor(int n, int flags) source
public CharSequence getSelectedText(int flags) source
public int getCursorCapsMode(int reqModes) source
public ExtractedText getExtractedText(ExtractedTextRequest request, int flags) source
public boolean deleteSurroundingText(int beforeLength, int afterLength) source
public boolean deleteSurroundingTextInCodePoints(int beforeLength, int afterLength) source
public boolean setComposingText(CharSequence text, int newCursorPosition) source
public boolean setComposingRegion(int start, int end) source
public boolean finishComposingText() source
public boolean commitText(CharSequence text, int newCursorPosition) source
public boolean commitCompletion(CompletionInfo text) source
public boolean commitCorrection(CorrectionInfo correctionInfo) source
public boolean setSelection(int start, int end) source
public boolean performEditorAction(int editorAction) source
public boolean performContextMenuAction(int id) source
public boolean beginBatchEdit() source
public boolean endBatchEdit() source
public boolean sendKeyEvent(KeyEvent event) source
public boolean clearMetaKeyStates(int states) source
public boolean reportFullscreenMode(boolean enabled) source
public boolean performPrivateCommand(String action, Bundle data) source
public boolean requestCursorUpdates(int cursorUpdateMode) source
public android.os.Handler getHandler() source
public void closeConnection() empty body source
public boolean commitContent(InputContentInfo inputContentInfo, int flags, Bundle opts) source
public static int getComposingSpanStart(android.text.Spannable text) source
public static int getComposingSpanEnd(android.text.Spannable text) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.