android.view.inputmethod
Interface InputConnection

All Known Implementing Classes:
BaseInputConnection, InputConnectionWrapper

public interface InputConnection


Field Summary
static int GET_EXTRACTED_TEXT_MONITOR
           
static int GET_TEXT_WITH_STYLES
           
 
Method Summary
 boolean beginBatchEdit()
           
 boolean clearMetaKeyStates(int states)
           
 boolean commitCompletion(CompletionInfo text)
           
 boolean commitText(CharSequence text, int newCursorPosition)
           
 boolean deleteSurroundingText(int leftLength, int rightLength)
           
 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)
           
 

Field Detail

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
Method Detail

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.