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 | |
---|---|
InputMethodSessionImpl()
|
Public methods | |
---|---|
void
|
appPrivateCommand(String action, Bundle data)
|
void
|
displayCompletions(CompletionInfo[] completions)
|
void
|
finishInput()
|
void
|
toggleSoftInput(int showFlags, int hideFlags)
This method is deprecated.
Starting in |
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 | |
---|---|
Public constructors
InputMethodSessionImpl
public InputMethodSessionImpl ()
Public methods
appPrivateCommand
public void appPrivateCommand (String action, Bundle data)
Call InputMethodService.onAppPrivateCommand()
.
Parameters | |
---|---|
action |
String |
data |
Bundle |
displayCompletions
public void displayCompletions (CompletionInfo[] completions)
Call InputMethodService.onDisplayCompletions()
.
Parameters | |
---|---|
completions |
CompletionInfo |
toggleSoftInput
public void toggleSoftInput (int showFlags, int hideFlags)
This method is deprecated.
Starting in Build.VERSION_CODES#S
the system no longer invokes this
method, instead it explicitly shows or hides the IME. An InputMethodService
wishing to toggle its own visibility should instead invoke InputMethodService.requestShowSelf(int)
or InputMethodService#requestHideSelf
Handles a request to toggle the IME visibility.
Parameters | |
---|---|
showFlags |
int : Value is either 0 or a combination of InputMethodManager.SHOW_IMPLICIT , and InputMethodManager.SHOW_FORCED |
hideFlags |
int : Value is either 0 or a combination of InputMethodManager.HIDE_IMPLICIT_ONLY , and InputMethodManager.HIDE_NOT_ALWAYS |
updateCursor
public void updateCursor (Rect newCursor)
Call InputMethodService.onUpdateCursor()
.
Parameters | |
---|---|
newCursor |
Rect |
updateCursorAnchorInfo
public void updateCursorAnchorInfo (CursorAnchorInfo info)
Call InputMethodService.onUpdateCursorAnchorInfo()
.
Parameters | |
---|---|
info |
CursorAnchorInfo |
updateExtractedText
public void updateExtractedText (int token, ExtractedText text)
Call InputMethodService.onUpdateExtractedText()
.
Parameters | |
---|---|
token |
int |
text |
ExtractedText |
updateSelection
public 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
public void viewClicked (boolean focusChanged)
Parameters | |
---|---|
focusChanged |
boolean |