public abstract class AbstractInputMethodService.AbstractInputMethodSessionImpl extends Object implements InputMethodSession
InputMethodSession
interface. This takes care of basic maintenance of the session,
but most behavior must be implemented in a derived class.InputMethodSession.EventCallback
Constructor and Description |
---|
AbstractInputMethodSessionImpl() |
Modifier and Type | Method and Description |
---|---|
void |
dispatchGenericMotionEvent(int seq,
MotionEvent event,
InputMethodSession.EventCallback callback)
Take care of dispatching incoming generic motion events to the appropriate
callbacks on the service, and tell the client when this is done.
|
void |
dispatchKeyEvent(int seq,
KeyEvent event,
InputMethodSession.EventCallback callback)
Take care of dispatching incoming key events to the appropriate
callbacks on the service, and tell the client when this is done.
|
void |
dispatchTrackballEvent(int seq,
MotionEvent event,
InputMethodSession.EventCallback callback)
Take care of dispatching incoming trackball events to the appropriate
callbacks on the service, and tell the client when this is done.
|
boolean |
isEnabled()
Check whether this session has been enabled by the system.
|
boolean |
isRevoked()
Check whether this session has been revoked by the system.
|
void |
revokeSelf()
Revoke the session from the client.
|
void |
setEnabled(boolean enabled)
Change the enabled state of the session.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appPrivateCommand, displayCompletions, finishInput, toggleSoftInput, updateCursor, updateCursorAnchorInfo, updateExtractedText, updateSelection, viewClicked
public boolean isEnabled()
public boolean isRevoked()
public void setEnabled(boolean enabled)
public void revokeSelf()
public void dispatchKeyEvent(int seq, KeyEvent event, InputMethodSession.EventCallback callback)
dispatchKeyEvent
in interface InputMethodSession
event
- The key event.#dispatchKeyUp
,
KeyEvent
public void dispatchTrackballEvent(int seq, MotionEvent event, InputMethodSession.EventCallback callback)
dispatchTrackballEvent
in interface InputMethodSession
event
- The motion event.MotionEvent
public void dispatchGenericMotionEvent(int seq, MotionEvent event, InputMethodSession.EventCallback callback)
dispatchGenericMotionEvent
in interface InputMethodSession
event
- The motion event.MotionEvent