public interface InputConnection
| Modifier and Type | Field and Description |
|---|---|
static int |
GET_EXTRACTED_TEXT_MONITOR |
static int |
GET_TEXT_WITH_STYLES |
| Modifier and Type | Method and Description |
|---|---|
boolean |
beginBatchEdit() |
boolean |
clearMetaKeyStates(int states) |
boolean |
commitCompletion(CompletionInfo text) |
boolean |
commitCorrection(CorrectionInfo correctionInfo) |
boolean |
commitText(CharSequence text,
int newCursorPosition) |
boolean |
deleteSurroundingText(int beforeLength,
int afterLength) |
boolean |
endBatchEdit() |
boolean |
finishComposingText() |
int |
getCursorCapsMode(int reqModes) |
ExtractedText |
getExtractedText(ExtractedTextRequest request,
int flags) |
CharSequence |
getSelectedText(int flags) |
CharSequence |
getTextAfterCursor(int n,
int flags) |
CharSequence |
getTextBeforeCursor(int n,
int flags) |
boolean |
performContextMenuAction(int id) |
boolean |
performEditorAction(int editorAction) |
boolean |
performPrivateCommand(String action,
Bundle data) |
boolean |
reportFullscreenMode(boolean enabled) |
boolean |
sendKeyEvent(KeyEvent event) |
boolean |
setComposingRegion(int start,
int end) |
boolean |
setComposingText(CharSequence text,
int newCursorPosition) |
boolean |
setSelection(int start,
int end) |
static final int GET_TEXT_WITH_STYLES
static final int GET_EXTRACTED_TEXT_MONITOR
CharSequence getTextBeforeCursor(int n, int flags)
CharSequence getTextAfterCursor(int n, int flags)
CharSequence getSelectedText(int flags)
int getCursorCapsMode(int reqModes)
ExtractedText getExtractedText(ExtractedTextRequest request, int flags)
boolean deleteSurroundingText(int beforeLength,
int afterLength)
boolean setComposingText(CharSequence text, int newCursorPosition)
boolean setComposingRegion(int start,
int end)
boolean finishComposingText()
boolean commitText(CharSequence text, int newCursorPosition)
boolean commitCompletion(CompletionInfo text)
boolean commitCorrection(CorrectionInfo correctionInfo)
boolean setSelection(int start,
int end)
boolean performEditorAction(int editorAction)
boolean performContextMenuAction(int id)
boolean beginBatchEdit()
boolean endBatchEdit()
boolean sendKeyEvent(KeyEvent event)
boolean clearMetaKeyStates(int states)
boolean reportFullscreenMode(boolean enabled)
Copyright © 2008-2013. All Rights Reserved.