Most visited

Recently visited

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


AbstractInputMethodService.AbstractInputMethodSessionImpl具体实现,提供了输入方法会话的所有标准行为。

摘要(Summary)

Public constructors

InputMethodService.InputMethodSessionImpl()

公共方法(Public methods)

void appPrivateCommand(String action, Bundle data)

致电 InputMethodService.onAppPrivateCommand()

void displayCompletions(CompletionInfo[] completions)

致电 InputMethodService.onDisplayCompletions()

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

void updateCursor(Rect newCursor)

致电 InputMethodService.onUpdateCursor()

void updateCursorAnchorInfo(CursorAnchorInfo info)

致电 InputMethodService.onUpdateCursorAnchorInfo()

void updateExtractedText(int token, ExtractedText text)

致电 InputMethodService.onUpdateExtractedText()

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

致电 InputMethodService.onUpdateSelection()

void viewClicked(boolean focusChanged)

继承方法(Inherited methods)

From class android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodSessionImpl
From class java.lang.Object
From interface android.view.inputmethod.InputMethodSession

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)

致电 InputMethodService.onAppPrivateCommand()

参数(Parameters)
action String
data Bundle

displayCompletions

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

致电 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)

致电 InputMethodService.onUpdateCursor()

参数(Parameters)
newCursor Rect

updateCursorAnchorInfo

Added in API level 21
void updateCursorAnchorInfo (CursorAnchorInfo info)

致电 InputMethodService.onUpdateCursorAnchorInfo()

参数(Parameters)
info CursorAnchorInfo

updateExtractedText

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

致电 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)

致电 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

Hooray!