public abstract class AbstractInputMethodService.AbstractInputMethodImpl extends Object implements InputMethod
InputMethod
interface. This takes care of basic maintenance of the input method,
but most behavior must be implemented in a derived class.InputMethod.SessionCallback
SERVICE_INTERFACE, SERVICE_META_DATA, SHOW_EXPLICIT, SHOW_FORCED
Constructor and Description |
---|
AbstractInputMethodImpl() |
Modifier and Type | Method and Description |
---|---|
void |
createSession(InputMethod.SessionCallback callback)
Instantiate a new client session for the input method, by calling
back to
AbstractInputMethodService.onCreateInputMethodSessionInterface() . |
void |
revokeSession(InputMethodSession session)
Take care of killing an existing session by calling its
AbstractInputMethodSessionImpl.revokeSelf() method. |
void |
setSessionEnabled(InputMethodSession session,
boolean enabled)
Take care of enabling or disabling an existing session by calling its
AbstractInputMethodSessionImpl.setEnabled() method. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attachToken, bindInput, changeInputMethodSubtype, hideSoftInput, restartInput, showSoftInput, startInput, unbindInput
public void createSession(InputMethod.SessionCallback callback)
AbstractInputMethodService.onCreateInputMethodSessionInterface()
.createSession
in interface InputMethod
callback
- Interface that is called with the newly created session.public void setSessionEnabled(InputMethodSession session, boolean enabled)
AbstractInputMethodSessionImpl.setEnabled()
method.setSessionEnabled
in interface InputMethod
session
- The InputMethodSession
previously provided through
SessionCallback.sessionCreated() that is to be changed.public void revokeSession(InputMethodSession session)
AbstractInputMethodSessionImpl.revokeSelf()
method.revokeSession
in interface InputMethod
session
- The InputMethodSession
previously provided through
SessionCallback.sessionCreated() that is to be revoked.