Methods Summary |
---|
public boolean | beginBatchEdit()
try {
mIInputContext.beginBatchEdit();
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | clearMetaKeyStates(int states)
try {
mIInputContext.clearMetaKeyStates(states);
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | commitCompletion(android.view.inputmethod.CompletionInfo text)
try {
mIInputContext.commitCompletion(text);
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | commitCorrection(android.view.inputmethod.CorrectionInfo correctionInfo)
try {
mIInputContext.commitCorrection(correctionInfo);
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | commitText(java.lang.CharSequence text, int newCursorPosition)
try {
mIInputContext.commitText(text, newCursorPosition);
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | deleteSurroundingText(int beforeLength, int afterLength)
try {
mIInputContext.deleteSurroundingText(beforeLength, afterLength);
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | endBatchEdit()
try {
mIInputContext.endBatchEdit();
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | finishComposingText()
try {
mIInputContext.finishComposingText();
return true;
} catch (RemoteException e) {
return false;
}
|
public int | getCursorCapsMode(int reqModes)
int value = 0;
try {
InputContextCallback callback = InputContextCallback.getInstance();
mIInputContext.getCursorCapsMode(reqModes, callback.mSeq, callback);
synchronized (callback) {
callback.waitForResultLocked();
if (callback.mHaveValue) {
value = callback.mCursorCapsMode;
}
}
callback.dispose();
} catch (RemoteException e) {
return 0;
}
return value;
|
public android.view.inputmethod.ExtractedText | getExtractedText(android.view.inputmethod.ExtractedTextRequest request, int flags)
ExtractedText value = null;
try {
InputContextCallback callback = InputContextCallback.getInstance();
mIInputContext.getExtractedText(request, flags, callback.mSeq, callback);
synchronized (callback) {
callback.waitForResultLocked();
if (callback.mHaveValue) {
value = callback.mExtractedText;
}
}
callback.dispose();
} catch (RemoteException e) {
return null;
}
return value;
|
public java.lang.CharSequence | getSelectedText(int flags)
CharSequence value = null;
try {
InputContextCallback callback = InputContextCallback.getInstance();
mIInputContext.getSelectedText(flags, callback.mSeq, callback);
synchronized (callback) {
callback.waitForResultLocked();
if (callback.mHaveValue) {
value = callback.mSelectedText;
}
}
callback.dispose();
} catch (RemoteException e) {
return null;
}
return value;
|
public java.lang.CharSequence | getTextAfterCursor(int length, int flags)
CharSequence value = null;
try {
InputContextCallback callback = InputContextCallback.getInstance();
mIInputContext.getTextAfterCursor(length, flags, callback.mSeq, callback);
synchronized (callback) {
callback.waitForResultLocked();
if (callback.mHaveValue) {
value = callback.mTextAfterCursor;
}
}
callback.dispose();
} catch (RemoteException e) {
return null;
}
return value;
|
public java.lang.CharSequence | getTextBeforeCursor(int length, int flags)
CharSequence value = null;
try {
InputContextCallback callback = InputContextCallback.getInstance();
mIInputContext.getTextBeforeCursor(length, flags, callback.mSeq, callback);
synchronized (callback) {
callback.waitForResultLocked();
if (callback.mHaveValue) {
value = callback.mTextBeforeCursor;
}
}
callback.dispose();
} catch (RemoteException e) {
return null;
}
return value;
|
public boolean | performContextMenuAction(int id)
try {
mIInputContext.performContextMenuAction(id);
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | performEditorAction(int actionCode)
try {
mIInputContext.performEditorAction(actionCode);
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | performPrivateCommand(java.lang.String action, android.os.Bundle data)
try {
mIInputContext.performPrivateCommand(action, data);
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | reportFullscreenMode(boolean enabled)
try {
mIInputContext.reportFullscreenMode(enabled);
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | requestCursorUpdates(int cursorUpdateMode)
boolean result = false;
try {
InputContextCallback callback = InputContextCallback.getInstance();
mIInputContext.requestUpdateCursorAnchorInfo(cursorUpdateMode, callback.mSeq, callback);
synchronized (callback) {
callback.waitForResultLocked();
if (callback.mHaveValue) {
result = callback.mRequestUpdateCursorAnchorInfoResult;
}
}
callback.dispose();
} catch (RemoteException e) {
return false;
}
return result;
|
public boolean | sendKeyEvent(android.view.KeyEvent event)
try {
mIInputContext.sendKeyEvent(event);
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | setComposingRegion(int start, int end)
try {
mIInputContext.setComposingRegion(start, end);
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | setComposingText(java.lang.CharSequence text, int newCursorPosition)
try {
mIInputContext.setComposingText(text, newCursorPosition);
return true;
} catch (RemoteException e) {
return false;
}
|
public boolean | setSelection(int start, int end)
try {
mIInputContext.setSelection(start, end);
return true;
} catch (RemoteException e) {
return false;
}
|