added in API level 3

InputMethodService.InputMethodSessionImpl

public class InputMethodService.InputMethodSessionImpl
extends AbstractInputMethodService.AbstractInputMethodSessionImpl

java.lang.Object
   ↳ android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodSessionImpl
     ↳ android.inputmethodservice.InputMethodService.InputMethodSessionImpl


Concrete implementation of AbstractInputMethodService.AbstractInputMethodSessionImpl that provides all of the standard behavior for an input method session.

Summary

Public constructors

InputMethodService.InputMethodSessionImpl()

Public methods

void appPrivateCommand(String action, Bundle data)

Call InputMethodService.onAppPrivateCommand().

void displayCompletions(CompletionInfo[] completions)

Call InputMethodService.onDisplayCompletions().

void finishInput()
void toggleSoftInput(int showFlags, int hideFlags)

void updateCursor(Rect newCursor)

Call InputMethodService.onUpdateCursor().

void updateCursorAnchorInfo(CursorAnchorInfo info)

Call InputMethodService.onUpdateCursorAnchorInfo().

void updateExtractedText(int token, ExtractedText text)

Call InputMethodService.onUpdateExtractedText().

void updateSelection(int oldSelStart, int oldSelEnd, int newSelStart, int newSelEnd, int candidatesStart, int candidatesEnd)

Call InputMethodService.onUpdateSelection().

void viewClicked(boolean focusChanged)

Inherited methods

Public constructors

InputMethodService.InputMethodSessionImpl

added in API level 3
InputMethodService.InputMethodSessionImpl ()

Public methods

appPrivateCommand

added in API level 3
void appPrivateCommand (String action, 
                Bundle data)

Call InputMethodService.onAppPrivateCommand().

Parameters
action String

data Bundle

displayCompletions

added in API level 3
void displayCompletions (CompletionInfo[] completions)

Call InputMethodService.onDisplayCompletions().

Parameters
completions CompletionInfo

finishInput

added in API level 3
void finishInput ()

toggleSoftInput

added in API level 3
void toggleSoftInput (int showFlags, 
                int hideFlags)

Parameters
showFlags int

hideFlags int

updateCursor

added in API level 3
void updateCursor (Rect newCursor)

Call InputMethodService.onUpdateCursor().

Parameters
newCursor Rect

updateCursorAnchorInfo

added in API level 21
void updateCursorAnchorInfo (CursorAnchorInfo info)

Call InputMethodService.onUpdateCursorAnchorInfo().

Parameters
info CursorAnchorInfo

updateExtractedText

added in API level 3
void updateExtractedText (int token, 
                ExtractedText text)

Call InputMethodService.onUpdateExtractedText().

Parameters
token int

text ExtractedText

updateSelection

added in API level 3
void updateSelection (int oldSelStart, 
                int oldSelEnd, 
                int newSelStart, 
                int newSelEnd, 
                int candidatesStart, 
                int candidatesEnd)

Call InputMethodService.onUpdateSelection().

Parameters
oldSelStart int

oldSelEnd int

newSelStart int

newSelEnd int

candidatesStart int

candidatesEnd int

viewClicked

added in API level 14
void viewClicked (boolean focusChanged)

Parameters
focusChanged boolean