Most visited

Recently visited

Added in API level 3

AbstractInputMethodService.AbstractInputMethodImpl

public abstract class AbstractInputMethodService.AbstractInputMethodImpl
extends Object implements InputMethod

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


派生类实现其InputMethod接口的基类。 这需要处理输入方法的基本维护,但大多数行为必须在派生类中实现。

Summary

Inherited constants

From interface android.view.inputmethod.InputMethod

Public constructors

AbstractInputMethodService.AbstractInputMethodImpl()

Public methods

void createSession(InputMethod.SessionCallback callback)

通过调用回 AbstractInputMethodService.onCreateInputMethodSessionInterface()为输入方法实例化一个新的客户端会话。

void revokeSession(InputMethodSession session)

通过调用 AbstractInputMethodSessionImpl.revokeSelf()方法来处理现有会话。

void setSessionEnabled(InputMethodSession session, boolean enabled)

通过调用其方法 AbstractInputMethodSessionImpl.setEnabled()来启用或禁用现有会话。

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)

通过调用回 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)

通过调用其 AbstractInputMethodSessionImpl.revokeSelf()方法来处理现有会话。

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)

通过调用其 AbstractInputMethodSessionImpl.setEnabled()方法来启用或禁用现有会话。

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

Hooray!