Methods Summary |
---|
public void | appPrivateCommand(java.lang.String action, android.os.Bundle data)Process a private command sent from the application to the input method.
This can be used to provide domain-specific features that are
only known between certain input methods and their clients.
|
public void | dispatchKeyEvent(int seq, android.view.KeyEvent event, android.view.inputmethod.InputMethodSession$EventCallback callback)This method is called when a key is pressed. When done with the event,
the implementation must call back on callback with its
result.
If the input method wants to handle this event, return true, otherwise
return false and the caller (i.e. the application) will handle the event.
|
public void | dispatchTrackballEvent(int seq, android.view.MotionEvent event, android.view.inputmethod.InputMethodSession$EventCallback callback)This method is called when there is a track ball event.
If the input method wants to handle this event, return true, otherwise
return false and the caller (i.e. the application) will handle the event.
|
public void | displayCompletions(CompletionInfo[] completions)Called by a text editor that performs auto completion, to tell the
input method about the completions it has available. This can be used
by the input method to display them to the user to select the text to
be inserted.
|
public void | finishInput()This method is called when the application would like to stop
receiving text input.
|
public void | toggleSoftInput(int showFlags, int hideFlags)Toggle the soft input window.
Applications can toggle the state of the soft input window.
|
public void | updateCursor(android.graphics.Rect newCursor)This method is called when cursor location of the target input field
has changed within its window. This is not normally called, but will
only be reported if requested by the input method.
|
public void | updateExtractedText(int token, ExtractedText text)Called by a text editor to report its new extracted text when its
contents change. This will only be called if the input method
calls {@link InputConnection#getExtractedText(ExtractedTextRequest, int)
InputConnection.getExtractedText()} with the option to report updates.
|
public void | updateSelection(int oldSelStart, int oldSelEnd, int newSelStart, int newSelEnd, int candidatesStart, int candidatesEnd)This method is called when the selection or cursor in the current
target input field has changed.
|