# Print output for @column tags ?> AbstractInputMethodService.AbstractInputMethodImpl - Android SDK | Android Developers

Most visited


Recently visited


AbstractInputMethodService.AbstractInputMethodImpl

public abstract class AbstractInputMethodService.AbstractInputMethodImpl
extends Object implements InputMethod

java.lang.Object
   ↳ android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodImpl


Base class for derived classes to implement their InputMethod interface. This takes care of basic maintenance of the input method, but most behavior must be implemented in a derived class.

Summary


Inherited constants

Public constructors

AbstractInputMethodImpl()

Public methods

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#revokeSelf() method.

Inherited methods

Public constructors


AbstractInputMethodImpl

public AbstractInputMethodImpl ()

Public methods


createSession

public void createSession (InputMethod.SessionCallback callback)

Instantiate a new client session for the input method, by calling back to AbstractInputMethodService#onCreateInputMethodSessionInterface().
This method must be called from the Looper#getMainLooper() of your app.

Parameters
callback InputMethod.SessionCallback: Interface that is called with the newly created session.

revokeSession

public void revokeSession (InputMethodSession session)

Take care of killing an existing session by calling its AbstractInputMethodSessionImpl#revokeSelf() method.
This method must be called from the Looper#getMainLooper() of your app.

Parameters
session InputMethodSession: The InputMethodSession previously provided through SessionCallback.sessionCreated() that is to be revoked.

setSessionEnabled

public void setSessionEnabled (InputMethodSession session, 
                boolean enabled)

Take care of enabling or disabling an existing session by calling its AbstractInputMethodSessionImpl#revokeSelf() method.
This method must be called from the Looper#getMainLooper() of your app.

Parameters
session InputMethodSession: The InputMethodSession previously provided through SessionCallback.sessionCreated() that is to be changed.

enabled boolean

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.