Android APIs
public class

InputMethodService.InputMethodSessionImpl

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

Class Overview

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)
void displayCompletions(CompletionInfo[] completions)
void finishInput()
void toggleSoftInput(int showFlags, int hideFlags)
void updateCursor(Rect newCursor)
void updateCursorAnchorInfo(CursorAnchorInfo info)
void updateExtractedText(int token, ExtractedText text)
void updateSelection(int oldSelStart, int oldSelEnd, int newSelStart, int newSelEnd, int candidatesStart, int candidatesEnd)
void viewClicked(boolean focusChanged)
[Expand]
Inherited Methods
From class android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodSessionImpl
From class java.lang.Object
From interface android.view.inputmethod.InputMethodSession

Public Constructors

public InputMethodService.InputMethodSessionImpl ()

Added in API level 3

Public Methods

public void appPrivateCommand (String action, Bundle data)

Added in API level 3

Call InputMethodService.onAppPrivateCommand().

Parameters
action String
data Bundle

public void displayCompletions (CompletionInfo[] completions)

Added in API level 3

Call InputMethodService.onDisplayCompletions().

Parameters
completions CompletionInfo

public void finishInput ()

Added in API level 3

public void toggleSoftInput (int showFlags, int hideFlags)

Added in API level 3

Parameters
showFlags int
hideFlags int

public void updateCursor (Rect newCursor)

Added in API level 3

Call InputMethodService.onUpdateCursor().

Parameters
newCursor Rect

public void updateCursorAnchorInfo (CursorAnchorInfo info)

Added in API level 21

Call InputMethodService.onUpdateCursorAnchorInfo().

Parameters
info CursorAnchorInfo

public void updateExtractedText (int token, ExtractedText text)

Added in API level 3

Call InputMethodService.onUpdateExtractedText().

Parameters
token int
text ExtractedText

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

Added in API level 3

Call InputMethodService.onUpdateSelection().

Parameters
oldSelStart int
oldSelEnd int
newSelStart int
newSelEnd int
candidatesStart int
candidatesEnd int

public void viewClicked (boolean focusChanged)

Added in API level 14

Parameters
focusChanged boolean