public abstract class IInputConnectionWrapper
extends IInputContext.Stub
Constructor and Description |
---|
IInputConnectionWrapper(Looper mainLooper,
InputConnection inputConnection) |
Modifier and Type | Method and Description |
---|---|
void |
beginBatchEdit() |
void |
clearMetaKeyStates(int states) |
void |
closeConnection() |
void |
commitCompletion(CompletionInfo text) |
void |
commitContent(InputContentInfo inputContentInfo,
int flags,
Bundle opts,
int seq,
IInputContextCallback callback) |
void |
commitCorrection(CorrectionInfo info) |
void |
commitText(CharSequence text,
int newCursorPosition) |
void |
deleteSurroundingText(int beforeLength,
int afterLength) |
void |
deleteSurroundingTextInCodePoints(int beforeLength,
int afterLength) |
void |
endBatchEdit() |
void |
finishComposingText() |
void |
getCursorCapsMode(int reqModes,
int seq,
IInputContextCallback callback) |
void |
getExtractedText(ExtractedTextRequest request,
int flags,
int seq,
IInputContextCallback callback) |
InputConnection |
getInputConnection() |
String |
getInputMethodId() |
void |
getSelectedText(int flags,
int seq,
IInputContextCallback callback) |
void |
getTextAfterCursor(int length,
int flags,
int seq,
IInputContextCallback callback) |
void |
getTextBeforeCursor(int length,
int flags,
int seq,
IInputContextCallback callback) |
protected abstract boolean |
isActive() |
protected boolean |
isFinished() |
protected abstract void |
onReportFullscreenMode(boolean enabled,
boolean calledInBackground)
Called when the input method started or stopped full-screen mode.
|
protected abstract void |
onUserAction()
Called when the user took some actions that should be taken into consideration to update the
LRU list for input method rotation.
|
void |
performContextMenuAction(int id) |
void |
performEditorAction(int id) |
void |
performPrivateCommand(String action,
Bundle data) |
void |
reportFullscreenMode(boolean enabled) |
void |
requestUpdateCursorAnchorInfo(int cursorUpdateMode,
int seq,
IInputContextCallback callback) |
void |
sendKeyEvent(KeyEvent event) |
void |
setComposingRegion(int start,
int end) |
void |
setComposingText(CharSequence text,
int newCursorPosition) |
void |
setInputMethodId(String inputMethodId) |
void |
setSelection(int start,
int end) |
public IInputConnectionWrapper(Looper mainLooper, InputConnection inputConnection)
public InputConnection getInputConnection()
protected boolean isFinished()
public String getInputMethodId()
public void setInputMethodId(String inputMethodId)
protected abstract boolean isActive()
protected abstract void onUserAction()
protected abstract void onReportFullscreenMode(boolean enabled, boolean calledInBackground)
enabled
- true
if the input method starts full-screen mode.calledInBackground
- true
if this input connection is in a state when incoming
events are usually ignored.public void getTextAfterCursor(int length, int flags, int seq, IInputContextCallback callback)
public void getTextBeforeCursor(int length, int flags, int seq, IInputContextCallback callback)
public void getSelectedText(int flags, int seq, IInputContextCallback callback)
public void getCursorCapsMode(int reqModes, int seq, IInputContextCallback callback)
public void getExtractedText(ExtractedTextRequest request, int flags, int seq, IInputContextCallback callback)
public void commitText(CharSequence text, int newCursorPosition)
public void commitCompletion(CompletionInfo text)
public void commitCorrection(CorrectionInfo info)
public void setSelection(int start, int end)
public void performEditorAction(int id)
public void performContextMenuAction(int id)
public void setComposingRegion(int start, int end)
public void setComposingText(CharSequence text, int newCursorPosition)
public void finishComposingText()
public void sendKeyEvent(KeyEvent event)
public void clearMetaKeyStates(int states)
public void deleteSurroundingText(int beforeLength, int afterLength)
public void deleteSurroundingTextInCodePoints(int beforeLength, int afterLength)
public void beginBatchEdit()
public void endBatchEdit()
public void reportFullscreenMode(boolean enabled)
public void requestUpdateCursorAnchorInfo(int cursorUpdateMode, int seq, IInputContextCallback callback)
public void closeConnection()
public void commitContent(InputContentInfo inputContentInfo, int flags, Bundle opts, int seq, IInputContextCallback callback)