Skip to content

Most visited

Recently visited

navigation

AbstractInputMethodService.AbstractInputMethodImpl

public abstract class AbstractInputMethodService.AbstractInputMethodImpl
extends Object implements InputMethod

java.lang.Object
   ↳ android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodImpl
Known Direct Subclasses


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

From interface android.view.inputmethod.InputMethod

Public constructors

AbstractInputMethodService.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.setEnabled() method.

Inherited methods

From class java.lang.Object
From interface android.view.inputmethod.InputMethod

Public constructors

AbstractInputMethodService.AbstractInputMethodImpl

Added in API level 3
AbstractInputMethodService.AbstractInputMethodImpl ()

Public methods

createSession

Added in API level 3
void createSession (InputMethod.SessionCallback callback)

Instantiate a new client session for the input method, by calling back to AbstractInputMethodService.onCreateInputMethodSessionInterface().

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

revokeSession

Added in API level 3
void revokeSession (InputMethodSession session)

Take care of killing an existing session by calling its AbstractInputMethodSessionImpl.revokeSelf() method.

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

setSessionEnabled

Added in API level 3
void setSessionEnabled (InputMethodSession session, 
                boolean enabled)

Take care of enabling or disabling an existing session by calling its AbstractInputMethodSessionImpl.setEnabled() method.

Parameters
session InputMethodSession: The InputMethodSession previously provided through SessionCallback.sessionCreated() that is to be changed.
enabled boolean
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.