android.view.inputmethod
Interface InputConnection
- All Known Implementing Classes:
- BaseInputConnection, InputConnectionWrapper
public interface InputConnection
GET_TEXT_WITH_STYLES
static final int GET_TEXT_WITH_STYLES
- See Also:
- Constant Field Values
GET_EXTRACTED_TEXT_MONITOR
static final int GET_EXTRACTED_TEXT_MONITOR
- See Also:
- Constant Field Values
getTextBeforeCursor
CharSequence getTextBeforeCursor(int n,
int flags)
getTextAfterCursor
CharSequence getTextAfterCursor(int n,
int flags)
getSelectedText
CharSequence getSelectedText(int flags)
getCursorCapsMode
int getCursorCapsMode(int reqModes)
getExtractedText
ExtractedText getExtractedText(ExtractedTextRequest request,
int flags)
deleteSurroundingText
boolean deleteSurroundingText(int leftLength,
int rightLength)
setComposingText
boolean setComposingText(CharSequence text,
int newCursorPosition)
setComposingRegion
boolean setComposingRegion(int start,
int end)
finishComposingText
boolean finishComposingText()
commitText
boolean commitText(CharSequence text,
int newCursorPosition)
commitCompletion
boolean commitCompletion(CompletionInfo text)
setSelection
boolean setSelection(int start,
int end)
performEditorAction
boolean performEditorAction(int editorAction)
performContextMenuAction
boolean performContextMenuAction(int id)
beginBatchEdit
boolean beginBatchEdit()
endBatchEdit
boolean endBatchEdit()
sendKeyEvent
boolean sendKeyEvent(KeyEvent event)
clearMetaKeyStates
boolean clearMetaKeyStates(int states)
reportFullscreenMode
boolean reportFullscreenMode(boolean enabled)
performPrivateCommand
boolean performPrivateCommand(String action,
Bundle data)
Copyright © 2008-2010. All Rights Reserved.