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) |
|
|---|---|
android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodSessionImpl
|
|
java.lang.Object
|
|
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
|