public abstract class AbstractInputMethodService.AbstractInputMethodImpl
extends Object
implements InputMethod
java.lang.Object | |
↳ | android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodImpl |
Known Direct Subclasses |
派生类实现其InputMethod
接口的基类。 这需要处理输入方法的基本维护,但大多数行为必须在派生类中实现。
Inherited constants |
---|
From interface android.view.inputmethod.InputMethod
|
Public constructors |
|
---|---|
AbstractInputMethodService.AbstractInputMethodImpl() |
Public methods |
|
---|---|
void |
createSession(InputMethod.SessionCallback callback) 通过调用回 |
void |
revokeSession(InputMethodSession session) 通过调用 |
void |
setSessionEnabled(InputMethodSession session, boolean enabled) 通过调用其方法 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
|
From interface android.view.inputmethod.InputMethod
|
AbstractInputMethodService.AbstractInputMethodImpl ()
void createSession (InputMethod.SessionCallback callback)
通过调用回 AbstractInputMethodService.onCreateInputMethodSessionInterface()
,为输入方法实例化一个新的客户端会话。
Parameters | |
---|---|
callback |
InputMethod.SessionCallback : Interface that is called with the newly created session. |
void revokeSession (InputMethodSession session)
通过调用其 AbstractInputMethodSessionImpl.revokeSelf()
方法来处理现有会话。
Parameters | |
---|---|
session |
InputMethodSession : The InputMethodSession previously provided through SessionCallback.sessionCreated() that is to be revoked. |
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
|