public class InputMethodService.InputMethodSessionImpl
extends AbstractInputMethodService.AbstractInputMethodSessionImpl
java.lang.Object | ||
↳ | android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodSessionImpl | |
↳ | android.inputmethodservice.InputMethodService.InputMethodSessionImpl |
AbstractInputMethodService.AbstractInputMethodSessionImpl
具体实现,提供了输入方法会话的所有标准行为。
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) |
Inherited methods |
|
---|---|
From class android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodSessionImpl
|
|
From class java.lang.Object
|
|
From interface android.view.inputmethod.InputMethodSession
|
InputMethodService.InputMethodSessionImpl ()
void appPrivateCommand (String action, Bundle data)
致电 InputMethodService.onAppPrivateCommand()
。
Parameters | |
---|---|
action |
String
|
data |
Bundle
|
void displayCompletions (CompletionInfo[] completions)
致电 InputMethodService.onDisplayCompletions()
。
Parameters | |
---|---|
completions |
CompletionInfo
|
void toggleSoftInput (int showFlags, int hideFlags)
Parameters | |
---|---|
showFlags |
int
|
hideFlags |
int
|
void updateCursor (Rect newCursor)
致电 InputMethodService.onUpdateCursor()
。
Parameters | |
---|---|
newCursor |
Rect
|
void updateCursorAnchorInfo (CursorAnchorInfo info)
致电 InputMethodService.onUpdateCursorAnchorInfo()
。
Parameters | |
---|---|
info |
CursorAnchorInfo
|
void updateExtractedText (int token, ExtractedText text)
致电 InputMethodService.onUpdateExtractedText()
。
Parameters | |
---|---|
token |
int
|
text |
ExtractedText
|
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
|
void viewClicked (boolean focusChanged)
Parameters | |
---|---|
focusChanged |
boolean
|